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;
 }
Exemple #4
0
 public PostRepository(FinderContext context)
 {
     this.context = context;
 }
Exemple #5
0
 public FriendshipRepository(FinderContext context)
 {
     this.context = context;
 }