public static Task <bool> DoesExist <TEntity>(this BillTrackerContext context, Guid entityId) where TEntity : class, IEntity { return(context.Set <TEntity>().AnyAsync(x => x.Id == entityId)); }
public DbInitializer(BillTrackerContext context) { _context = context; }