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