示例#1
0
 public void Delete(Domain.MType type)
 {
     _typeRepository.DbContext.BeginTransaction();
     _typeRepository.Delete(type);
     _typeRepository.DbContext.CommitTransaction();
 }
示例#2
0
 public void Insert(Domain.MType type)
 {
     _typeRepository.DbContext.BeginTransaction();
     _typeRepository.Save(type);
     _typeRepository.DbContext.CommitTransaction();
 }