What do you call the Entity Framework data model?

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

NorthwindDB? NorthwindData? NWDB?

+2


source to share


3 answers


I usually use the most general description, often the name of the application. So, if this is a travel app, I would call it TravelApplication.edmx. Then your ObjectContext will be TravelApplicationEntities

, which I think makes sense.



+1


source


Assuming you mean in C # I would go with

Northwind.Data

      



in SQL, I don't care.

0


source


We have multiple Entity models in each project to improve maintainability and manageability, usually one model for each subsystem.

We then name the models according to the subsystem they belong to. For example, for an insurance system, you can:

  • ClaimsEntities
  • ProductEntities
  • PolicyEntities
0


source







All Articles