Model First or Schema First

Posted by: the telerik blogs, on 22 Jun 2009 | View original | Bookmarked: 0 time(s)

Telerik OpenAccess ORM let you work your preferred way: either you start with your object model and Telerik OpenAccess ORM generates/maintains your database schema for you, or just start with your existing schema and let Telerik OpenAccess ORM reverse map it to a new object model.

 

Telerik OpenAccess ORM provides support for both approaches for years and it will get even better by providing complex functionalities out of the box like Roundtrip Mapping (see below).

Because we are getting requests for Model First functionalities by our customers, and this is the way the upcoming version of Entity Framework names the Forward mapping scenarios, we would like to shed some light how it translates in the context of Telerik OpenAccess ORM:

 

  • Entity Frameworks Model First equals Telerik OpenAccess ORM Forward Mapping
  • Entity Frameworks Schema First equals Telerik OpenAccess ORM Reverse Mapping

 

This is featured on our product information page including further links to the relevant demos.

 

  • Forward Mapping (model-first) - OpenAccess allows you to start working from scratch with your object model and just creates your new relational database with an optimized data schema. You dont need to think in relations anymore, but you still can. OpenAccess optionally allows you to define almost any kind of schema and you can influence the given names of tables or columns. See demo
  • Reverse Mapping (schema-first) - OpenAccess additionally allows you to start with your legacy database. The reverse mapping experience begins the minute you connect your new Visual Studio project to the legacy database using the Reverse Mapping wizard. OpenAccess recognizes the data model, data types and additional information like keys and creates the matching object model. Then you can start designing and developing your new .NET application.  See demo

 

 

clip_image002

 

So moving forward, we will start using both wordings simultaneously and transition to the Entity Framework wording to make life easier for you.

Furthermore we have already introduced:

 

  • Roundtrip Mapping - You can even change directions: any change in the object model will change optionally your schema and any change in the database can optionally change your object model.

 

If you are totally new to ORM, Scott Amblers introduction to mapping might still be helpful.

 

To learn more about the various mapping techniques you can have a look to Object Relation Mapping Strategies and how to do it with OpenAccess in the documentation:

 

A good introduction into OpenAccess is the recorded Webinar (watch online, download wmv), which demonstrates Model First and Schema First, or the Falafel OpenAccess Made Easy courseware (available printed for purchase or free to download).

Further resources:

 

Model First / Forward Mapping

 

Schema First / Reverse Mapping

 

Entity Framework Model First Introductions:

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XSD | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2073 | Hits: 10

Similar Posts

  • Model First, Database First or Code FirstUpdate to Data Points Column more
  • ASP.NET 4.0 Dynamic Data and Many to Many Entity Framework Entities more
  • Linking Zune media items with LinQ, Part 1 (Matt Gertz) more
  • New Entity Framework Feature CTP for VS2010 Beta 2 more
  • Telerik OpenAccess ORM introduces the industry-first full support for SQL Azure and extends functionality more
  • Grouping data in a Silverlight DataGrid more
  • Spec Explorer: A Model-Based Testing tool more
  • Mapping references and collections in Telerik OpenAccess ORM (Part 1) more
  • Screencast Whats new in the Entity Data Model Designer in VS2010 more
  • EF4: Lazy Loading on By Default but what about pre Beta 2 Models? more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD