Monday, March 1, 2010

Hands-on Entity Framework

Object-relational mapping or O/RM is a technique which creates a virtual database you can use from inside of your application, where, instead of tables of “things”, there are collections of “objects”. And an object can be a Person, a Car, a Record Album, an Invoice, whatever it is your application is working with. For example, a Record Album has a collection, or list, of tracks. And, for the most part, only has one Artist or Band. On the flip side, an Artist or Band has a list of Record Albums they have recorded. At its heart, what an O/RM does is to map database tables, and its relations, into a set of objects, or classes. This allows you to think in the context of your application, instead of how to make the data fit correctly into the tables.

Originally posted in simple-talk, click here to read more...

No comments:

Post a Comment