예제 #1
0
        public Relations UpdateRelation(Relations relation)
        {
            var entity = dbContext.Attach(relation);

            entity.State = EntityState.Modified;

            return(relation);
        }
예제 #2
0
        public People UpdatePeople(People people)
        {
            var entity = dbContext.Attach(people);

            entity.State = EntityState.Modified;

            return(people);
        }