DataContext question
Posted: Wed 19 Aug 2009 12:02
Hello,
1. What happens when I declare DataContext dc = new dataContext ?
I want to know this, because it seems to take a few seconds to pass this statement.
2. Do I declare a new DataContext everytime I open an new form, or do I use the same one and pass this as a parameter?
3. Is it possible to have more datacontext's in 1 project; each with its own set of tables? Or is it wiser to have 1 dataontext with all tables ?
Thanks
1. What happens when I declare DataContext dc = new dataContext ?
I want to know this, because it seems to take a few seconds to pass this statement.
2. Do I declare a new DataContext everytime I open an new form, or do I use the same one and pass this as a parameter?
3. Is it possible to have more datacontext's in 1 project; each with its own set of tables? Or is it wiser to have 1 dataontext with all tables ?
Thanks