public void TestInitialize()
 {
     transactionScope = new TransactionScope();
     dbContext        = new HappContext();
     repository       = new QueriseRepository(dbContext);
     querise          = new Querise()
     {
         EID        = Guid.NewGuid(),
         DID        = Id,
         SessionKey = sessionKey
     };
 }
Beispiel #2
0
 public void Remove(Querise entity)
 {
     _DbSet.Attach(entity);
     _context.Entry(entity).State = EntityState.Deleted;
 }
Beispiel #3
0
 public void Modify(Querise entity)
 {
     _DbSet.Attach(entity);
     _context.Entry(entity).State = EntityState.Modified;
 }
Beispiel #4
0
 public void Add(Querise entity)
 {
     _DbSet.Add(entity);
 }