Introducing the Code First Approach
So far, you have seen how the Entity Framework enables you to create applications that access data based on a model-centric approach, in which an abstraction layer enables you to map to .NET objects an existing database (Database First), via convenient tools and designers. Back in Visual Studio 2010, Microsoft also introduced the so-called Model First approach, which enables you to generate an empty model without having a database; here you design your entities and associations in the Entity Framework designer and can finally generate a database with the Generate Database from Model command that is available when you right-click the designer. You can easily experiment with Model First on your own by selecting ...
Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.