예제 #1
0
 /// <summary>
 /// Construct a new NpgsqlTypeInfo with the given attributes and conversion handlers.
 /// </summary>
 /// <param name="OID">Type OID provided by the backend server.</param>
 /// <param name="Name">Type name provided by the backend server.</param>
 /// <param name="NpgsqlDbType">NpgsqlDbType</param>
 /// <param name="Type">System type to convert fields of this type to.</param>
 /// <param name="ConvertBackendToNative">Data conversion handler.</param>
 public NpgsqlBackendTypeInfo(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type, ConvertBackendToNativeHandler ConvertBackendToNative)
 {
     _OID                    = OID;
     _Name                   = Name;
     _NpgsqlDbType           = NpgsqlDbType;
     _DbType                 = DbType;
     _Type                   = Type;
     _ConvertBackendToNative = ConvertBackendToNative;
 }
예제 #2
0
 /// <summary>
 /// Add a new NpgsqlBackendTypeInfo with the given attributes and conversion handlers to this mapping.
 /// </summary>
 /// <param name="OID">Type OID provided by the backend server.</param>
 /// <param name="Name">Type name provided by the backend server.</param>
 /// <param name="NpgsqlDbType">NpgsqlDbType</param>
 /// <param name="Type">System type to convert fields of this type to.</param>
 /// <param name="ConvertBackendToNative">Data conversion handler.</param>
 public void AddType(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type,
                     ConvertBackendToNativeHandler BackendConvert)
 {
     AddType(new NpgsqlBackendTypeInfo(OID, Name, NpgsqlDbType, DbType, Type, BackendConvert));
 }
예제 #3
0
 /// <summary>
 /// Add a new NpgsqlBackendTypeInfo with the given attributes and conversion handlers to this mapping.
 /// </summary>
 /// <param name="OID">Type OID provided by the backend server.</param>
 /// <param name="Name">Type name provided by the backend server.</param>
 /// <param name="NpgsqlDbType">NpgsqlDbType</param>
 /// <param name="Type">System type to convert fields of this type to.</param>
 /// <param name="ConvertBackendToNative">Data conversion handler.</param>
 public void AddType(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type,
                     ConvertBackendToNativeHandler BackendConvert)
 {
     AddType(new NpgsqlBackendTypeInfo(OID, Name, NpgsqlDbType, DbType, Type, BackendConvert));
 }
예제 #4
0
 /// <summary>
 /// Construct a new NpgsqlTypeInfo with the given attributes and conversion handlers.
 /// </summary>
 /// <param name="OID">Type OID provided by the backend server.</param>
 /// <param name="Name">Type name provided by the backend server.</param>
 /// <param name="NpgsqlDbType">NpgsqlDbType</param>
 /// <param name="Type">System type to convert fields of this type to.</param>
 /// <param name="ConvertBackendToNative">Data conversion handler.</param>
 public NpgsqlBackendTypeInfo(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type, ConvertBackendToNativeHandler ConvertBackendToNative)
 {
     _OID = OID;
     _Name = Name;
     _NpgsqlDbType = NpgsqlDbType;
     _DbType = DbType;
     _Type = Type;
     _ConvertBackendToNative = ConvertBackendToNative;
 }