示例#1
0
 public void AddData()
 {
     using (_context = _factory.Create())
     {
         _sampleDAL.SetContext(_context);
         _sampleDAL.GetSampleDALMethod();
     }
 }
 public void SetContext(ISampleDBContext context)
 {
     dbContext = context;
 }