question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.Object being discovered as EntityType through navigation.

See original GitHub issue

I tried today to update my solution to RC1 from beta8 and get the exception The derived type 'FieldDefinitionEntity' cannot have keys other than those declared on the root type.. The root type is not mapped, only the derivied type. Should the mapping throw this exception anyway?

public class FieldDefinitionEntity : FieldDefinitionEntityBase
{
    public virtual bool MultiCulture { get; set; }
}

public abstract class FieldDefinitionEntityBase
{
    public virtual string FieldType { get; set; }
    public virtual string Id { get; set; }
}

Mapping

builder.Entity<FieldDefinitionEntity>(b =>
{
    b.ToTable("FieldDefinition", "Products");
    b.HasKey(p => p.Id);
});

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:31 (27 by maintainers)

github_iconTop GitHub Comments

1reaction
divegacommented, Apr 22, 2016

@markolbert RC2 hasn’t shipped the closest we have is staged in this NuGet feed: https://www.myget.org/F/aspnetrelease/api/v3/index.json

(More information about the different feeds at https://github.com/aspnet/Home/wiki/NuGet-feeds)

I don’t think we have any comprehensive guidance on how to move an existing RC1 project to RC2 yet.

1reaction
markolbertcommented, Apr 22, 2016

Diego, I’m using 7.0.0-rc1-final (the “stock” configuration that comes up when you create a new ASPNET5 web project in VS2015). I’m open to trying something more recent. What’s the easiest way to do that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Get Navigation Properties of given EntityType
I am using VS2010, EF4.0. Need function like the following. private string[] GetNaviProps(Type entityType)//eg ...
Read more >
Owned Entity Types - EF Core
Owned types configured with OwnsOne or discovered through a reference navigation always have a one-to-one relationship with the owner, ...
Read more >
Support for custom type mapping and data store to CLR ...
Details: At present we are making changes to our property discovery so that all the types supported by the provider can be mapped...
Read more >
Discrete-Event System Objects - MATLAB & Simulink
Author discrete-event System object by defining entity types, ports, storage, and events. STEP 1: Delay Entities with a Custom Entity Storage Block; STEP...
Read more >
Request and Response JSON Reference | Alexa Skills Kit
object. System. Provides information about the current state of the Alexa service and the device interacting with your skill.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found