public static void CreatePerson(this FunctionsDbContext context, string firstname, string lastname, DateTime dateOfBirth)
 {
     context.Persons.Add(new Person
     {
         DateOfBirth = dateOfBirth,
         Firstname   = firstname,
         Lastname    = lastname
     });
 }
Example #2
0
 public FunctionsDbInitializer(FunctionsDbContext context)
 {
     _context = context;
 }