示例#1
0
 public void Update(Dependent updateEntity)
 {
     context.Entry(updateEntity).State = EntityState.Modified;
 }
示例#2
0
 public void Remove(Dependent removeEntity)
 {
     context.Dependents.Remove(removeEntity);
 }
示例#3
0
 public void RemoveDependent(Dependent removeEntity)
 {
     DependentRepository dependentRepository = new DependentRepository(context);
     dependentRepository.Remove(removeEntity);
 }
示例#4
0
 public void Add(Dependent addEntity)
 {
     context.Dependents.Add(addEntity);
 }
示例#5
0
 public void AddDependent(Dependent addEntity)
 {
     DependentRepository dependentRepository = new DependentRepository(context);
     dependentRepository.Add(addEntity);
 }