public RestaurantService() { //String connection = "Data Source =WINTOP; Initial Catalog =core; User Id =sa; Password =admin;"; String connection = "Data Source =mw87ap2qqg.database.windows.net; Initial Catalog =BiteNet; User Id =BiteNetUser; Password =1q2w3e!@#;"; dc = new BiteNet.LinqToSql.CoreDataContext(connection); sessionManager = new SessionManager(dc); }
public SessionManager(CoreDataContext dc) { this.dc = dc; }
public IDataContext GetDataContext() { return(CoreDataContext.GetDataContext()); }
public CustomerRepository(CoreDataContext context, IOptions <Settings> config) { _context = context; _config = config; }
public DataProtectionKeyRepository(CoreDataContext context) { _db = context; }