Ejemplo n.º 1
0
 public DataTableLoaderConfiguration(string name, IDataTableLoaderCreator dataTableLoaderCreator)
 {
     if (string.IsNullOrEmpty(name))
     {
         throw new ArgumentException("name can not be null or empty.", "name");
     }
     if (dataTableLoaderCreator == null)
     {
         throw new ArgumentNullException("dataTableLoaderCreator");
     }
     this.Name = name;
     this.DataTableLoaderCreator = dataTableLoaderCreator;
 }
Ejemplo n.º 2
0
        public DataTableLoaderConfiguration AddDataTableLoaderConfiguration(string name, IDataTableLoaderCreator dataTableLoaderCreator)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException("name can not be null or empty.", "name");
            }
            if (dataTableLoaderCreator == null)
            {
                throw new ArgumentNullException("dataTableLoaderCreator");
            }
            DataTableLoaderConfiguration dataTableLoaderConfiguration = new DataTableLoaderConfiguration(name, dataTableLoaderCreator);

            this.backendDataTableLoaderConfigurations.Add(dataTableLoaderConfiguration);
            return(dataTableLoaderConfiguration);
        }