public AccountController(UserManager<ApplicationUser> userManager)
        {
            UserManager = userManager;

            m_db = new ShopDBEntities();
            m_db.Database.Initialize(false);
        }
Beispiel #2
0
 public SearchTools()
 {
     Db = new ShopDBEntities();
 }
 public WorkWithOrders()
 {
     Db = new ShopDBEntities();
 }
 public WorkWithTags()
 {
     Db = new ShopDBEntities();
 }
 public WorkWithOffers(HttpServerUtilityBase Server)
 {
     this.Server = Server;
     Db = new ShopDBEntities();
 }
 public Users GetUserByName(string UserName)
 {
     Db = new ShopDBEntities();
     return (from UserRecord in Db.Users where UserRecord.UserName == UserName select UserRecord).FirstOrDefault();
 }
 public WorkWithUsers()
 {
     Db = new ShopDBEntities();
 }
Beispiel #8
0
 public WorkWithOffers(HttpServerUtilityBase Server)
 {
     this.Server = Server;
     Db          = new ShopDBEntities();
 }
 public Users GetUserByID(string UserID)
 {
     Db = new ShopDBEntities();
     return((from UserRecord in Db.Users where UserRecord.UserID == UserID select UserRecord).FirstOrDefault());
 }
 public SearchTools()
 {
     Db = new ShopDBEntities();
 }