public SaveToSingleFile(ILogger <SaveToSingleFile> logger, GeneratorOptions options) { _logger = logger; _options = options; }
public static IServiceCollection AddEntityGenerator(this IServiceCollection services, GeneratorOptions options) { services.AddSingleton(options); services.AddSingleton <ISaveToFile, SaveToSingleFile>(); services.AddSingleton <ISaveToFile, SaveToMultipleFile>(); services.AddSingleton <SaveToFileFactory>(); services.AddSingleton <IEntityBuilder, DefaultBuilder>(); services.AddSingleton <IEntityBuilder, ORMBuilder>(); services.AddSingleton <BuilderFactory>(); services.AddSingleton <DBMetadataWrapper>(); services.AddSingleton(DBMetadataFactoryFactory.Instance); return(services); }