public static ContactsDataDataContext GetDataContext() { if (HttpContext.Current.Session[session] == null) { var context = new ContactsDataDataContext(); HttpContext.Current.Session.Add(session, context); return(context); } return((ContactsDataDataContext)HttpContext.Current.Session[session]); }
public LoginDataAccess() { dataContext = new ContactsDataDataContext(); }
public ContactDataAccess() { dataContext = new ContactsDataDataContext(); }