Ejemplo n.º 1
0
 protected DatabaseReader(DbProviderFactory factory, IDatabaseToPropertyType databaseToPropertyType)
 {
     if (databaseToPropertyType == null)
     {
         databaseToPropertyType = new SqlServerToCSharp(); // Default. Can be overridden in PluginDatabaseReader
     }
     DbTypeToPropertyType   = databaseToPropertyType.GetMapping();
     DatabaseEdition        = null;
     DatabaseEngineEdition  = null;
     DatabaseProductVersion = null;
     _factory                     = factory;
     DatabaseReaderPlugin         = null;
     IncludeSchema                = true;
     DoNotSpecifySizeForMaxLength = false;
     DatabaseDetails              = new StringBuilder(255);
 }
 public SqlServerCeDatabaseReader(DbProviderFactory factory, IDatabaseToPropertyType databaseToPropertyType)
     : base(factory, databaseToPropertyType)
 {
     StoredProcedureParameterDbType = new Dictionary <string, string>
     {
         { string.Empty, "VarChar" },       // default
         { "hierarchyid", "VarChar" },
         { "bigint", "BigInt" },
         { "binary", "Binary" },
         { "bit", "Bit" },
         { "char", "Char" },
         { "datetime", "DateTime" },
         { "decimal", "Decimal" },
         { "numeric", "Decimal" },
         { "float", "Float" },
         { "image", "Image" },
         { "int", "Int" },
         { "money", "Money" },
         { "nchar", "NChar" },
         { "ntext", "NText" },
         { "nvarchar", "NVarChar" },
         { "real", "Real" },
         { "uniqueidentifier", "UniqueIdentifier" },
         { "smalldatetime", "SmallDateTime" },
         { "smallint", "SmallInt" },
         { "smallmoney", "SmallMoney" },
         { "text", "Text" },
         { "timestamp", "Timestamp" },
         { "tinyint", "TinyInt" },
         { "varbinary", "VarBinary" },
         { "varchar", "VarChar" },
         { "variant", "Variant" },
         { "xml", "Xml" },
         { "udt", "Udt" },
         { "table type", "Structured" },
         { "structured", "Structured" },
         { "date", "Date" },
         { "time", "Time" },
         { "datetime2", "DateTime2" },
         { "datetimeoffset", "DateTimeOffset" }
     };
 }
 public PostgreSqlDatabaseReader(DbProviderFactory factory, IDatabaseToPropertyType databaseToPropertyType)
     : base(factory, databaseToPropertyType)
 {
     StoredProcedureParameterDbType = null;
 }
 public PostgreSqlDatabaseReader(DbProviderFactory factory, IDatabaseToPropertyType databaseToPropertyType)
     : base(factory, databaseToPropertyType)
 {
 }
 public OracleDatabaseReader(DbProviderFactory factory, IDatabaseToPropertyType databaseToPropertyType)
     : base(factory, databaseToPropertyType)
 {
 }