示例#1
0
        public PersonDBActivator_NotUsed(Environment.SpecialFolder specialFolder)
        {
            string dataDirPath = Environment.GetFolderPath(specialFolder);

            AppDomain.CurrentDomain.SetData("DataDirectory", dataDirPath);
            DbContext = new PersonDB();
        }
 public TypedBusiness(PersonDB dbContext, TTable table)
 {
     _dbContext = dbContext;
     _table     = table;
 }
示例#3
0
 public PersonDAL()
 {
     DbContext = new PersonDB();
 }
示例#4
0
 public PersonDAL(PersonDB dbContext)
 {
     DbContext = dbContext;
 }
示例#5
0
 public PersonDBActivator_NotUsed(string dataDirPath)
 {
     AppDomain.CurrentDomain.SetData("DataDirectory", dataDirPath);
     DbContext = new PersonDB();
 }
示例#6
0
 public PersonDBActivator_NotUsed()
 {
     DbContext = new PersonDB();
 }