/// <summary> /// Creates the DB if not exist. /// </summary> private void CreateDBIfNotExist() { lock (this.dataContextLock) { using (var dataContext = new DBContext()) { if (!dataContext.DatabaseExists()) { dataContext.CreateDatabase(); } } } }
/// <summary> /// Creates the DB if not exist. /// </summary> private void CreateDBIfNotExist() { lock (this.dataContextLock) { using (var dataContext = new DBContext()) { if (!dataContext.DatabaseExists()) { dataContext.CreateDatabase(); } } } }