1/1/2023 0 Comments Entity framework versions![]() ![]() ![]() In the Department entity, the Administrator property is a foreign key that corresponds to PersonID in the Person entity. However, as a practical matter, it's often easier to work with entities in code when you have direct access to the foreign keys.įor an example of how foreign keys in the data model can simplify your code, consider how you would have had to code the DepartmentsAdd.aspx page without them. The reason for this approach was that, strictly speaking, foreign keys are a physical implementation detail and don't belong in a conceptual data model. For example, the CourseID and StudentID columns of the StudentGrade table would be omitted from the StudentGrade entity. Version 3.5 of the Entity Framework included navigation properties, but it didn't include foreign-key properties in the data model. To start the tutorial, start Visual Studio and open the Contoso University web application that you were working with in the previous tutorial. In addition, the tutorial will briefly introduce code-first development, a feature that's coming in the next release of the Entity Framework. The features highlighted in this tutorial include the following: This tutorial reviews some of the most important new features in version 4 of the Entity Framework, and it links to resources that provide a more complete introduction to all of the new features. In the previous tutorial you saw some methods for maximizing the performance of a web application that uses the Entity Framework. If you have questions about the tutorials, you can post them to the ASP.NET Entity Framework forum. You can also download the application that is created by the complete tutorial series. ![]() If you didn't complete the earlier tutorials, as a starting point for this tutorial you can download the application that you would have created. This tutorial series builds on the Contoso University web application that is created by the Getting Started with the Entity Framework tutorial series. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |