Exemplo n.º 1
0
 public void Log(IEnumerable <EntityEntry <IHasId <long> > > entries)
 {
     foreach (var entry in entries)
     {
         switch (entry.State)
         {
         case EntityState.Added:
         case EntityState.Deleted:
         case EntityState.Modified:
             var entity = new LoggableEntity(entry);
             if (entity.Properties.Any())
             {
                 Log(entity);
             }
             break;
         }
     }
 }
Exemplo n.º 2
0
 public void Log(LoggableEntity entity)
 {
     _entities.Add(entity);
 }