[EF-86] Enabling Embedded Objects' Configuration for Polymorphism Created: 01/Dec/23  Updated: 04/Dec/23  Resolved: 04/Dec/23

Status: Closed
Project: Entity Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: امیرحسین رحمتی Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: feature, stability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates EF-80 Type discriminator support Scheduled

 Description   

Hi,

creating something like [BsonKnownTypes] and [BsonDiscriminator] Attributes to configure Nested Objects is one of essential features that should be available in EF Core MongoDB Provider.

Code Example:

{{}}

public class TempDocument 
{
    public ParentType Type {get; set;} 
}
public class ParentType 
{ 
    // properties 
} 
public class TypeA: ParentType 
{ 
    // properties 
} 
public class TypeB: ParentType
{
    // properties 
}

{{}}

ParentType, TypeA and TypeB classes need a new feature to be configured in (DatabaseContext class // OnModelCreating method).



 Comments   
Comment by Damien Guard [ 04/Dec/23 ]

Hi.

Thanks for your issue.

Entity Framework supports Type Discriminators through it's own fluent configuration API and we plan to support this in time for our 1.0 release.

Generated at Thu Feb 08 08:26:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.