Exemple #1
0
        public static void Initialize(FYHomeContext context)
        {
            context.Database.EnsureCreated();

            if (context.Person.Any())
            {
                return;
            }

            context.SaveChanges();
        }
Exemple #2
0
 public Repository(FYHomeContext dbContext)
 {
     _dbContext = dbContext;
 }