Пример #1
0
        public StudyingEntityText Update(StudyingEntityText studyingEntityText)
        {
            var entyti = ctx.StudyingEntityTexts.Attach(studyingEntityText);

            entyti.State = EntityState.Modified;
            return(studyingEntityText);
        }
Пример #2
0
 public StudyingEntityText Add(StudyingEntityText studyingEntityText)
 {
     ctx.Add(studyingEntityText);
     return(studyingEntityText);
 }