public void Create(TEntity entity)
 {
     using (var transaction = new TransactionScope())
     {
         decoratedCrud.Create(entity);
         transaction.Complete();
     }
 }
Ejemplo n.º 2
0
 public void Create(TEntity entity)
 {
     //  this.log.InfoFormat("Creating entity of type {0}", typeof(TEntity).Name);
     decoratedCrud.Create(entity);
 }
 public void Create(TEntity entity)
 {
     log.LogMessage(string.Format("Creating entity of type {0}", typeof(TEntity).Name));
     decoratedCrud.Create(entity);
 }
 public void Create(TEntity entity)
 {
     decorated.Create(entity);
 }
Ejemplo n.º 5
0
 public void Create(TEnity entity)
 {
     log.Info($"Creating entity of type {typeof(TEnity).Name}");
     decoratedCrud.Create(entity);
 }