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