static void Main(string[] args) { FinderContext context = new FinderContext(); context.SkillSets.Add(new SkillSet { Name = "master"}); //context.Employees.Add(new Employee { FirstName = "Shivani", LastName = "Surana", Gender = Gender.Female, Contact = new Contact { EmailId = "*****@*****.**" }, MiddleName ="hfkjdfh", EmployeeType = EmployeeType.Contract, HighestQualification = "fhkljadh"}); context.SaveChanges(); Console.WriteLine("Enter"); Console.ReadKey(); }
static void Main(string[] args) { FinderContext context = new FinderContext(); context.SkillSets.Add(new SkillSet { Name = "master" }); //context.Employees.Add(new Employee { FirstName = "Shivani", LastName = "Surana", Gender = Gender.Female, Contact = new Contact { EmailId = "*****@*****.**" }, MiddleName ="hfkjdfh", EmployeeType = EmployeeType.Contract, HighestQualification = "fhkljadh"}); context.SaveChanges(); Console.WriteLine("Enter"); Console.ReadKey(); }
public UserRepository(FinderContext context) { this.context = context; }
public PostRepository(FinderContext context) { this.context = context; }
public FriendshipRepository(FinderContext context) { this.context = context; }