コード例 #1
0
 public void AddCategory(Category c)
 {
     ctx.Categories.Add(c);
     ctx.SaveChanges();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: onixus74/TP3_MyFinance
 static void Main(string[] args)
 {
     CategoryRepository crepo = new CategoryRepository();
     Category c = new Category { Name = "Bioware"};
 }