user31571
user31571

Reputation: 65

DataContext naming Best Practices

Are there any? Do you give the DataContext the name of the Database you are getting data from or..

Upvotes: 0

Views: 227

Answers (1)

Haacked
Haacked

Reputation: 59001

Don't know if there are any established "best practices". I just name it with something that makes sense to me and lets me know immediately what it is. For me, that's to name it after the database.

So with Northwind database I have NorthwindDataContext.

Upvotes: 2

Related Questions