/// <summary>
 /// Return the correct <see cref="IGenerator"/> implementation
 /// </summary>
 public IGenerator GetGenerator(IReader reader, TableDef tableDef, DataSourceInformation options)
 {
     return(new InsertGenerator(reader, logger, tableDef, options));
 }
 /// <summary>
 /// Return the correct <see cref="IGenerator"/> implementation
 /// </summary>
 public IGenerator GetGenerator(IReader reader, TableDef tableDef, Action <DataSourceInformation> options = null)
 {
     logger.LogInformation("Using Insert generator");
     return(new InsertGenerator(reader, logger, tableDef, options));
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="reader"><see cref="IReader"/> that provides de data</param>
 /// /// <param name="logger">Logger</param>
 /// <param name="tableDef">Table schema</param>
 /// <param name="options">Allows to configure datasource metadata. By default MS SQL Server configuration is taken</param>
 public InsertGenerator(IReader reader, ILogger logger, TableDef tableDef, Action <DataSourceInformation> options = null) :
     base(reader, logger, tableDef, options)
 {
 }