示例#1
0
        internal static IRepository <Manager> GetRepo(string connectionString, string providerName)
        {
            Solution.DataAccess.DataModel.SolutionDataBaseDB db;
            if (String.IsNullOrEmpty(connectionString))
            {
                db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
            }
            else
            {
                db = new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
            }
            IRepository <Manager> _repo;

            if (db.TestMode)
            {
                Manager.SetTestRepo();
                _repo = _testRepo;
            }
            else
            {
                _repo = new SubSonicRepository <Manager>(db);
            }
            return(_repo);
        }
示例#2
0
 public UploadFile()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#3
0
 public Manager(string connectionString, string providerName)
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#4
0
 public LoginLog()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#5
0
 public Manager()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
 public AdvertisingPosition()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
 public InformationClass(string connectionString, string providerName)
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#8
0
 public MenuInfo()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#9
0
 public V_Position_Branch(string connectionString, string providerName)
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#10
0
 public Advertisement()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#11
0
 public AdvertisingPosition(string connectionString, string providerName)
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
 public PagePowerSignPublic(string connectionString, string providerName)
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#13
0
 public OnlineUsers()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#14
0
 public PagePowerSignPublic(string connectionString, string providerName)
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#15
0
 public UseLog()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#16
0
 public V_Position_Branch()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#17
0
 public InformationClass(string connectionString, string providerName)
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#18
0
 public WebConfig()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#19
0
 public MenuInfo()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#20
0
 public PagePowerSign()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#21
0
 public InformationClass()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#22
0
 public PagePowerSign()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#23
0
 public Branch()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#24
0
 public Advertisement()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#25
0
 public OnlineUsers()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#26
0
 public UploadType()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#27
0
 public Information()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#28
0
 public WebConfig()
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#29
0
 public Manager()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#30
0
 public Position()
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB();
     Init();
 }
示例#31
0
 public UseLog(string connectionString, string providerName)
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#32
0
 public AdvertisingPosition(string connectionString, string providerName)
 {
     _db=new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }
示例#33
0
        internal static IRepository<UseLog> GetRepo(string connectionString, string providerName)
        {
            Solution.DataAccess.DataModel.SolutionDataBaseDB db;
            if(String.IsNullOrEmpty(connectionString)){
                db=new Solution.DataAccess.DataModel.SolutionDataBaseDB();
            }else{
                db=new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
            }
            IRepository<UseLog> _repo;

            if(db.TestMode){
                UseLog.SetTestRepo();
                _repo=_testRepo;
            }else{
                _repo = new SubSonicRepository<UseLog>(db);
            }
            return _repo;
        }
 public V_Position_Branch(string connectionString, string providerName)
 {
     _db = new Solution.DataAccess.DataModel.SolutionDataBaseDB(connectionString, providerName);
     Init();
 }