コード例 #1
0
 public void Add(Recipe_Ingredient entity)
 {
     entity.id = new Guid();
     _context.Add(entity);
 }
コード例 #2
0
 public void Add(User entity)
 {
     entity.id        = new Guid();
     entity.AdminRole = false;
     _context.Add(entity);
 }
コード例 #3
0
ファイル: TypesRepo.cs プロジェクト: iBurakov33/Database
 public void Add(Models.Type entity)
 {
     _context.Add(entity);
 }
コード例 #4
0
 public void Add(Recipe_Type entity)
 {
     entity.id = new Guid();
     _context.Add(entity);
 }
コード例 #5
0
 public void Add(Ingredient entity)
 {
     _context.Add(entity);
 }
コード例 #6
0
ファイル: RecipeRep.cs プロジェクト: iBurakov33/Database
 public void Add(Recipe entity)
 {
     entity.id           = new Guid();
     entity.CreationDate = DateTime.Now;
     _context.Add(entity);
 }