internal static IRepository<Category> GetRepo(string connectionString, string providerName) { Hana.Model.NorthwindDB db; if(String.IsNullOrEmpty(connectionString)){ db=new Hana.Model.NorthwindDB(); }else{ db=new Hana.Model.NorthwindDB(connectionString, providerName); } IRepository<Category> _repo; if(db.TestMode){ Category.SetTestRepo(); _repo=_testRepo; }else{ _repo = new SubSonicRepository<Category>(db); } return _repo; }
public Category() { _db=new Hana.Model.NorthwindDB(); Init(); }
public Category(string connectionString, string providerName) { _db=new Hana.Model.NorthwindDB(connectionString, providerName); Init(); }
public Tags_Post() { _db=new Hana.Model.NorthwindDB(); Init(); }
public Tags_Post(string connectionString, string providerName) { _db=new Hana.Model.NorthwindDB(connectionString, providerName); Init(); }
public Comment() { _db=new Hana.Model.NorthwindDB(); Init(); }