DataContext Names Guidelines

Are there any? You give the DataContext the name of the database you are receiving data from, or ...

0
linq-to-sql


source to share


1 answer


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



So, with Northwind database, I have NorthwindDataContext.

+2


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics