Prior to Entity Framework 6, Entity Framework didn't make out entities or complex types that were nested within other entities or complex types. When Entity Framework generate the model, the nested types just remaining.
Let’s take a look at a easy instance in which we have our basic model with three entities Student, Course and Enrolment. properties.
Entity Framework will know how to continue Person types when it is used in previous version as well.
By using Entity Framework Power Tool we will see how Entity Framework interpret the model. Right click on Program’s file and select Entity Framework → View Entity Data Model (Read only)
Now you will see that character property is define in Student class.
If this Person class won't be used by any other entity, then we can nest it inside the Student class, but this earlier version of Entity Framework doesn't acknowledge nested types.
In older description, you generate the model again, not only is the type not standard, but because it's not there, the property isn't there either, so Entity Framework won't persist the Person type at all.
With Entity Framework 6, nested entities and complex types are accepted. In the above code, you can see that Person is nested within the Student class.
When you use the Entity Framework Power Tool to illustrate how Entity Framework interprets the model this time, there's true characteristics property, and Person complex type. So Entity Framework will persist that data.
Now you can see that Identity is a nested entity type, which was not support before Entity Framework 6.
We propose that you perform the above example in a step-by-step method for better understanding.
Microsoft Entity Framework Related Interview Questions
|XML Interview Questions||HTML 5 Interview Questions|
|Microsoft Entity Framework Interview Questions||Framework7 Interview Questions|
|Oracle Performance Tuning Interview Questions||Windows Presentation Foundation(WPF) Interview Questions|
|Windows Communication Foundation (WCF) Interview Questions||Microsoft Foundation Class Library (MFC) Interview Questions|
|Net Micro Framework Interview Questions|
Microsoft Entity Framework Related Practice Tests
|XML Practice Tests||HTML 5 Practice Tests|
|Microsoft Entity Framework Practice Tests||Windows Presentation Foundation(WPF) Practice Tests|
|Windows Communication Foundation (WCF) Practice Tests|
Microsoft Entity Framework Tutorial
Microsoft Entity Framework
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.