Beispiel #1
0
        public void Update(List <T> entities)
        {
            SILSEntities context = CreateContext();

            context.Entry(entities).State = EntityState.Modified;
            context.SaveChanges();
        }
Beispiel #2
0
        public void Delete(T entity)
        {
            SILSEntities context = CreateContext();

            context.Entry(entity).State = EntityState.Deleted;
            context.SaveChanges();
        }
Beispiel #3
0
        public void Insert(T entity)
        {
            SILSEntities context = CreateContext();

            context.Entry(entity).State = EntityState.Added;
            context.SaveChanges();
        }