public Generator(string connectionString, string outputFolder) { _connectionString = connectionString; _outputFolder = outputFolder; _dalType = DALType.SQL; _columnLanguageType = ColumnLanguageType.CSHARP; _columnDataProviderType = ColumnDataProviderType.SQLCLIENT; _columnLanguageTypeValues = this.LoadColumnLanguageTypeValues(_dalType.ToString(), _columnLanguageType.ToString()); _columnDataProviderTypeValues = this.LoadColumnDataProviderTypeValues(_dalType.ToString(), _columnDataProviderType.ToString()); _languageReservedWordValues = this.LoadReservedWordValues(_columnLanguageType.ToString()); }
public Generator(string connectionString, string outputFolder, DALType dalType, ColumnLanguageType columnLanguageType, ColumnDataProviderType columnDataProviderType) { _connectionString = connectionString; _outputFolder = outputFolder; _dalType = dalType; _columnLanguageType = columnLanguageType; _columnDataProviderType = columnDataProviderType; _columnLanguageTypeValues = this.LoadColumnLanguageTypeValues(_dalType.ToString(), _columnLanguageType.ToString()); _columnDataProviderTypeValues = this.LoadColumnDataProviderTypeValues(_dalType.ToString(), _columnDataProviderType.ToString()); _languageReservedWordValues = this.LoadReservedWordValues(_columnLanguageType.ToString()); }