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 }); } }
public WindlogRepository(WindlogContext context) { _context = context; }
public WindlogContextSeedData(WindlogContext context, UserManager <WindlogUser> managerUser) { _context = context; _managerUser = managerUser; }