public static void Seed(NotesServiceContext context) { context.Tenants.AddOrUpdate(x => x.Name, new Tenant() { Name = "Default", UniqueId = new Guid("196ce9e2-3107-475f-9c1c-7fa13b534eb1") }); context.SaveChanges(); }
public Handler(NotesServiceContext context, IEventBus bus) { _context = context; _bus = bus; }
public Handler(NotesServiceContext context, ICache cache) { _context = context; _cache = cache; }
public Handler(NotesServiceContext context, HttpClient client) { _context = context; _client = client; }