public static void Seed(PhotoBrowserContext context) { context.Tenants.AddOrUpdate(x => x.Name, new Tenant() { Name = "Default", UniqueId = new Guid("489902a0-a39d-4556-94b4-544d33d5ff5b") }); context.SaveChanges(); }
public static void Seed(PhotoBrowserContext context) { var tenant = context.Tenants.Single(x => x.Name == "Default"); context.Users.AddOrUpdate(x => x.Username, new User() { Username = "******", Password = new EncryptionService().TransformPassword("system"), TenantId = tenant.Id }); context.SaveChanges(); }
public Handler(PhotoBrowserContext context, HttpClient client) { _context = context; _client = client; }
public Handler(PhotoBrowserContext context) { _context = context; }
public GetDigitalAssetByUniqueIdHandler(PhotoBrowserContext context, ICache cache) { _context = context; _cache = cache; }
public Handler(PhotoBrowserContext context, ICache cache, Lazy <IAuthConfiguration> lazyAuthConfiguration) { _context = context; _cache = cache; _authConfiguration = lazyAuthConfiguration.Value; }