Esempio n. 1
0
        public static IGenerator Create(DataProviderTypes type)
        {
            switch (type)
            {
            case DataProviderTypes.PostgreSql:
                return(new PostgreSqlGenerator());

            case DataProviderTypes.Oracle:
                return(new OracleGenerator());

            case DataProviderTypes.MsSqlServer:
                throw new NotSupportedException(type.ToString());

            default:
                throw new NotSupportedException(type.ToString());
            }
        }
Esempio n. 2
0
 public TxtFileParser(string inputFilePath, DataProviderTypes inputDataProviderType)
 {
     FilePath             = inputFilePath;
     DataProviderType     = inputDataProviderType;
     CurrentFileProcessor = DataProviderFactory.GetFileProcessor(this);
 }