Exemplo n.º 1
0
 protected System.Data.Entity.EntityState EntityStateToEF(Revo.DataAccess.Entities.EntityState entityState)
 {
     return((System.Data.Entity.EntityState)entityState);
 }
Exemplo n.º 2
0
 public void SetEntityState <T>(T entity, Revo.DataAccess.Entities.EntityState state) where T : class
 {
     DatabaseAccess.GetDbContext(typeof(T)).Entry(entity).State = EntityStateToEF(state);
 }