public NpgsqlBackendTypeInfo(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type, ConvertBackendTextToNativeHandler ConvertBackendTextToNative, Type frameworkType, ConvertProviderTypeToFrameworkTypeHander convertProviderToFramework, ConvertFrameworkTypeToProviderTypeHander convertFrameworkToProvider) : this(OID, Name, NpgsqlDbType, DbType, Type, ConvertBackendTextToNative, null) { _frameworkType = frameworkType; _convertProviderToFramework = convertProviderToFramework; _convertFrameworkToProvider = convertFrameworkToProvider; }
/// <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="DbType">DbType</param> /// <param name="Type">System type to convert fields of this type to.</param> /// <param name="ConvertBackendTextToNative">Data conversion handler for text encoding.</param> /// <param name="ConvertBackendBinaryToNative">Data conversion handler for binary data.</param> public NpgsqlBackendTypeInfo(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type, ConvertBackendTextToNativeHandler ConvertBackendTextToNative = null, ConvertBackendBinaryToNativeHandler ConvertBackendBinaryToNative = null) { if (Type == null) { throw new ArgumentNullException("Type"); } _OID = OID; _Name = Name; _NpgsqlDbType = NpgsqlDbType; _DbType = DbType; _Type = Type; _frameworkType = Type; _ConvertBackendTextToNative = ConvertBackendTextToNative; _ConvertBackendBinaryToNative = ConvertBackendBinaryToNative; }
/// <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="DbType">DbType</param> /// <param name="Type">System type to convert fields of this type to.</param> /// <param name="BackendTextConvert">Data conversion handler for text encoding.</param> /// <param name="BackendBinaryConvert">Data conversion handler for binary data.</param> public void AddType(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type, ConvertBackendTextToNativeHandler BackendTextConvert = null, ConvertBackendBinaryToNativeHandler BackendBinaryConvert = null) { AddType(new NpgsqlBackendTypeInfo(OID, Name, NpgsqlDbType, DbType, Type, BackendTextConvert = null, BackendBinaryConvert = null)); }
public NpgsqlBackendTypeInfo(Int32 OID, String Name, NpgsqlDbType NpgsqlDbType, DbType DbType, Type Type, ConvertBackendTextToNativeHandler ConvertBackendTextToNative, ConvertBackendBinaryToNativeHandler ConvertBackendBinaryToNative, Type frameworkType, ConvertProviderTypeToFrameworkTypeHander convertProviderToFramework, ConvertFrameworkTypeToProviderTypeHander convertFrameworkToProvider) : this(OID, Name, NpgsqlDbType, DbType, Type, ConvertBackendTextToNative, ConvertBackendBinaryToNative) { _frameworkType = frameworkType; _convertProviderToFramework = convertProviderToFramework; _convertFrameworkToProvider = convertFrameworkToProvider; }