Exemplo n.º 1
0
        public static void UseXmlFileProvider(this MiCakeSqlReaderOptions sqlReaderOptions, Action <XmlFileSqlReaderOptions> optionsAction = null)
        {
            var options = new XmlFileSqlReaderOptions();

            optionsAction?.Invoke(options);

            sqlReaderOptions.AddProvider(new XmlFileSqlDataProvider(options));
        }
Exemplo n.º 2
0
 public static void UseXmlFileProvider(this MiCakeSqlReaderOptions sqlReaderOptions, XmlFileSqlReaderOptions options)
 {
     options ??= new XmlFileSqlReaderOptions();
     sqlReaderOptions.AddProvider(new XmlFileSqlDataProvider(options));
 }