You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love if this feature does not fill in the standard Relational library but perhaps is exposed as a additional feature (pay for play scenario) which I can plug in only if needed
Customizing linking FK (By default it's required dependent)
Views
With triggers and owned types
With table splitting
API proposal:
modelBuilder.Entity<Customer>().SplitToTable("CustomerDetails", tb =>{// PK mapped to all tables by default// Any other property mapped to a split table is not mapped to the default tabletb.Property(c =>c.AlternateKey);// Empty column name effectively removes the property from the mapping fragmenttb.Property(c =>c.AlternateKey).HasColumnName("");});modelBuilder.Entity<Customer>().ToTable("Customer", tb =>{// Properties can be explicitly mapped to the default table tootb.Property(c =>c.AlternateKey);});modelBuilder.Entity<Customer>().SplitToView("CustomerView", tb =>{tb.Property(c =>c.AlternateKey);});
Can I somehow specify that the foreign key is already specified in a table? Right now, EF tells me that I must have the FK in the "main" table but the limitation in the issue descriptions only says that FK won't be created in the database. In my case it's already created, is it still not possible to have the FK in another table?
@OskarKlintrot Please open a new issue and attach a small, runnable project or post a small, runnable code listing that shows what you are attempting and what doesn't work.
Activity
ilmax commentedon Sep 4, 2014
I would love if this feature does not fill in the standard Relational library but perhaps is exposed as a additional feature (pay for play scenario) which I can plug in only if needed
AndriySvyryd commentedon Aug 29, 2017
Related to TPT #2266
ajcvickers commentedon Sep 14, 2017
Note: consider optional relationships: #9773
AndriySvyryd commentedon Sep 19, 2017
API proposal:
netspark commentedon Oct 4, 2017
Would be very appreciated for implementing this, we have a lot of legacy one-to-one tables in DB which make no sense to treat separately in backend
jansomers commentedon Jan 11, 2018
Would very much love this feature, also the optional relationships is a must have when implementing entity splitting
63 remaining items
Query: Full support for entity splitting
Query: Full support for entity splitting
Query: Full support for entity splitting
Query: Full support for entity splitting
Query: Full support for entity splitting
OskarKlintrot commentedon Oct 12, 2022
Can I somehow specify that the foreign key is already specified in a table? Right now, EF tells me that I must have the FK in the "main" table but the limitation in the issue descriptions only says that FK
won't be created in the database. In my case it's already created, is it still not possible to have the FK in another table?ajcvickers commentedon Oct 12, 2022
@OskarKlintrot Please open a new issue and attach a small, runnable project or post a small, runnable code listing that shows what you are attempting and what doesn't work.