public void AddCategory(Category c)
 {
     ctx.Categories.Add(c);
     ctx.SaveChanges();
 }
Beispiel #2
0
 static void Main(string[] args)
 {
     CategoryRepository crepo = new CategoryRepository();
     Category c = new Category { Name = "Bioware"};
 }