Beispiel #1
0
        public async void UpdateAsync(T entity)
        {
            await DbSet.LoadAsync();

            DbSet.Attach(entity);
            EarthOnlineDbContext.Entry(entity).State = EntityState.Modified;
        }
Beispiel #2
0
 /// <summary>
 /// Updates the given Entity in the Layerscape database.
 /// </summary>
 /// <param name="entity">Entity to be updated</param>
 public void Update(T entity)
 {
     DbSet.Attach(entity);
     EarthOnlineDbContext.Entry(entity).State = EntityState.Modified;
 }