예제 #1
0
        public static void Initialize <T>(CareHomeContext context) where T : class
        {
            if (context.Set <T>().Any())
            {
                return;
            }

            Seed <T>(context);
        }
예제 #2
0
 public virtual async Task <T> GetByIdAsync(int id)
 {
     return(await _dbContext.Set <T>().FindAsync(id));
 }