System.Object being discovered as EntityType through navigation.
See original GitHub issueI 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:
- Created 8 years ago
- Comments:31 (27 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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?