internal static IRepository <Branch> GetRepo(string connectionString, string providerName) { Solution.DataAccess.DataModel.SubSonicTestDB db; if (String.IsNullOrEmpty(connectionString)) { db = new Solution.DataAccess.DataModel.SubSonicTestDB(); } else { db = new Solution.DataAccess.DataModel.SubSonicTestDB(connectionString, providerName); } IRepository <Branch> _repo; if (db.TestMode) { Branch.SetTestRepo(); _repo = _testRepo; } else { _repo = new SubSonicRepository <Branch>(db); } return(_repo); }
public Branch(string connectionString, string providerName) { _db = new Solution.DataAccess.DataModel.SubSonicTestDB(connectionString, providerName); Init(); }
public Branch() { _db = new Solution.DataAccess.DataModel.SubSonicTestDB(); Init(); }
public Position() { _db = new Solution.DataAccess.DataModel.SubSonicTestDB(); Init(); }