views:

54

answers:

3

With your LINQ or Entity Framework data models... what do you use as a standard naming convention for your data models? Or do you even have a standard? Using Northwind as the example...

NorthwindDB? NorthwindData? NWDB?

A: 

Assuming you mean in c#, I'd go with

Northwind.Data

in SQL, I wouldn't care.

csharptest.net
A: 

I usually go with the most general description, often the app name. So, if it's a travel application, I might call it TravelApplication.edmx. Your ObjectContext will then be TravelApplicationEntities, which I think makes sense.

Dave Swersky
A: 

We have several Entity Models in each project to improve maintainability and managability, normally one model for each subsystem.

We then name the models according to the subsystem they belong to. For example for a insurance system you may have:

  • ClaimsEntities
  • ProductEntities
  • PolicyEntities
Shiraz Bhaiji