public void Adds_SQL_server_services() { var services = new ServiceCollection(); var builder = new EntityServicesBuilder(services); _applyServices.Invoke(new SqlServerOptionsExtension(), new object[] { builder }); Assert.True(services.Any(sd => sd.ServiceType == typeof(SqlServerDataStore))); }
protected override void ApplyServices(EntityServicesBuilder builder) { }
protected override void ApplyServices(EntityServicesBuilder builder) { Check.NotNull(builder, "builder"); builder.AddSQLite(); }
protected override void ApplyServices(EntityServicesBuilder builder) { builder.AddRedis(); }
protected override void ApplyServices(EntityServicesBuilder builder) { builder.AddAzureTableStorage(); }
protected internal abstract void ApplyServices([NotNull] EntityServicesBuilder builder);
public static EntityServicesBuilder AddProviderServices(this EntityServicesBuilder entityServicesBuilder) { return(entityServicesBuilder.AddSqlServer()); }
protected override void ApplyServices(EntityServicesBuilder builder) { Check.NotNull(builder, "builder"); builder.AddInMemoryStore(); }
protected override void ApplyServices(EntityServicesBuilder builder) { builder.AddMigrations(); }