DataContext Names Guidelines

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

0


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







All Articles