Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 06, 2013 09:49 AM by thaicarrot
Jan 05, 2013 06:52 PM|LINK
If I have a class "Sag" that has a public property which contains a List of objects 'Ratings"(which are optional)
and in the extended EntityConfiguationType class I have the following configuration:
HasOptional(s => s.Ratings);
HasMany(s => s.Ratings).WithRequired(r => r.Sag);
if I add a new "Rating" to the "Sag" property List
and then save changes via the DbContext
will the new "Rating" be stored in the Rating table
or do I need to use the Rating DbSet to explicitly store the new rating?
Thanks in advance!
Jan 06, 2013 07:14 AM|LINK
Can you show us your full EF （Code-first）codes and explain in details about what you want？
Jan 06, 2013 09:49 AM|LINK