示例#1
0
        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]);
        }
示例#2
0
 public LoginDataAccess()
 {
     dataContext = new ContactsDataDataContext();
 }
示例#3
0
 public ContactDataAccess()
 {
     dataContext = new ContactsDataDataContext();
 }