예제 #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();
 }