Beispiel #1
0
 public ICollection <SelfReference> ListReferences()
 {
     using (var context = new ModelSetReferences())
     {
         return(context.SelfReferences.ToList());
     }
 }
Beispiel #2
0
 public void AddReference(SelfReference selfReference)
 {
     using (var context = new ModelSetReferences())
     {
         context.SelfReferences.Add(selfReference);
         context.SaveChanges();
     }
 }