예제 #1
0
 private void AddMaterialsToSession(WindlogContext _context, Session session, Material[] materials)
 {
     foreach (var material in materials)
     {
         _context.SessionMaterials.Add(
             new SessionMaterials
         {
             SessionId  = session.Id,
             Session    = session,
             MaterialId = material.Id,
             Material   = material,
             UserName   = TheUser
         });
     }
 }
예제 #2
0
 public WindlogRepository(WindlogContext context)
 {
     _context = context;
 }
예제 #3
0
 public WindlogContextSeedData(WindlogContext context, UserManager <WindlogUser> managerUser)
 {
     _context     = context;
     _managerUser = managerUser;
 }