sandeep ram

sandeep ram

  • NA
  • 23
  • 0

What is the difference between using a DataContext instance in the following two ways?

Oct 14 2009 12:41 AM
Hi,

First post here, so pardon me if its a repeat qossion... :)

Can someone please tell me what is the difference between creating the datacontext as -

  1. MyDatabaseDataContext db=new MyDatabaseDataContext();

//////
///////// Some code/


2.using (MyDatabaseDataContext db=new MyDatabaseDataContext())

{
 ///
////// do something.
}


Answers (5)