public static void Initialize <T>(CareHomeContext context) where T : class { if (context.Set <T>().Any()) { return; } Seed <T>(context); }
public virtual async Task <T> GetByIdAsync(int id) { return(await _dbContext.Set <T>().FindAsync(id)); }
public static void Initialize <T>(CareHomeContext context) where T : class { if (context.Set <T>().Any()) { return; } Seed <T>(context); }
public virtual async Task <T> GetByIdAsync(int id) { return(await _dbContext.Set <T>().FindAsync(id)); }