/// <param name="fileName">Full path to the Excel spreadsheet</param>
        /// <param name="logManagerFactory">
        /// Factory that facilitates the creation of an external log manager (i.e. log4net) to
        /// allow internal methods of LinqToExcel to perform diagnostic logging.
        /// </param>
        public ExcelQueryFactory(string fileName, ILogManagerFactory logManagerFactory)
        {
            FileName       = fileName;
            DatabaseEngine = ExcelUtilities.DefaultDatabaseEngine();

            if (logManagerFactory != null)
            {
                _logManagerFactory = logManagerFactory;
                _log = _logManagerFactory.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
            }
        }
 /// <param name="fileName">Full path to the Excel spreadsheet</param>
 public ExcelQueryFactory(string fileName)
 {
     FileName       = fileName;
     DatabaseEngine = ExcelUtilities.DefaultDatabaseEngine();
 }
Beispiel #3
0
 public ExcelQueryArgs()
     : this(new ExcelQueryConstructorArgs {
     DatabaseEngine = ExcelUtilities.DefaultDatabaseEngine()
 })
 {
 }