ByteArrayRelationalTypeMapper ByteArrayRelationalTypeMapper Class

Definition

Determines the type mapping to use for byte array properties.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class ByteArrayRelationalTypeMapper : IByteArrayRelationalTypeMapper
Public Class ByteArrayRelationalTypeMapper
    Implements IByteArrayRelationalTypeMapper
Inheritance
System.ObjectSystem.Object
ByteArrayRelationalTypeMapperByteArrayRelationalTypeMapper
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

ByteArrayRelationalTypeMapper(Int32, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, Func) ByteArrayRelationalTypeMapper(Int32, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, Func(Of Int32, RelationalTypeMapping))

Initialized a new instance of the ByteArrayRelationalTypeMapper class.

public ByteArrayRelationalTypeMapper(int maxBoundedLength, RelationalTypeMapping defaultMapping, RelationalTypeMapping unboundedMapping, RelationalTypeMapping keyMapping, RelationalTypeMapping rowVersionMapping, Func<int, RelationalTypeMapping> createBoundedMapping)
Public Sub New(maxBoundedLength As Integer, defaultMapping As RelationalTypeMapping, unboundedMapping As RelationalTypeMapping, keyMapping As RelationalTypeMapping, rowVersionMapping As RelationalTypeMapping, createBoundedMapping As Func(Of Integer, RelationalTypeMapping))
Parameters
maxBoundedLength
System.Int32 System.Int32

Maximum length of data that can be stored in a byte array property.

defaultMapping
RelationalTypeMapping RelationalTypeMapping

Default mapping to be used.

unboundedMapping
RelationalTypeMapping RelationalTypeMapping

Mapping to be used for properties with no length specified.

keyMapping
RelationalTypeMapping RelationalTypeMapping

Mapping to be used for key properties.

rowVersionMapping
RelationalTypeMapping RelationalTypeMapping

Mapping to be used for properties being used as a row version.

createBoundedMapping
System.Func<System.Int32, RelationalTypeMapping> System.Func(Of System.Int32, RelationalTypeMapping)

Function to create a mapping for a property with a given length.

Properties

CreateBoundedMapping CreateBoundedMapping

Gets a function to create a mapping for a property with a given length.

public virtual Func<int, RelationalTypeMapping> CreateBoundedMapping { get; }
Public Overridable ReadOnly Property CreateBoundedMapping As Func(Of Integer, RelationalTypeMapping)
Value
System.Func<System.Int32, RelationalTypeMapping> System.Func(Of System.Int32, RelationalTypeMapping)

DefaultMapping DefaultMapping

Gets the default mapping to be used.

public virtual RelationalTypeMapping DefaultMapping { get; }
Public Overridable ReadOnly Property DefaultMapping As RelationalTypeMapping

KeyMapping KeyMapping

Gets the mapping to be used for key properties

public virtual RelationalTypeMapping KeyMapping { get; }
Public Overridable ReadOnly Property KeyMapping As RelationalTypeMapping

MaxBoundedLength MaxBoundedLength

Gets the maximum length of data that can be stored in a byte array property

public virtual int MaxBoundedLength { get; }
Public Overridable ReadOnly Property MaxBoundedLength As Integer
Value
System.Int32 System.Int32

RowVersionMapping RowVersionMapping

Gets the mapping to be used for properties being used as a row version.

public virtual RelationalTypeMapping RowVersionMapping { get; }
Public Overridable ReadOnly Property RowVersionMapping As RelationalTypeMapping

UnboundedMapping UnboundedMapping

Gets the mapping to be used for properties with no length specified

public virtual RelationalTypeMapping UnboundedMapping { get; }
Public Overridable ReadOnly Property UnboundedMapping As RelationalTypeMapping

Methods

FindMapping(Boolean, Boolean, Nullable) FindMapping(Boolean, Boolean, Nullable(Of Int32))

Gets the mapping for a property.

public virtual RelationalTypeMapping FindMapping(bool rowVersion, bool keyOrIndex, int ? size)
Public Overridable Function FindMapping(rowVersion As Boolean, keyOrIndex As Boolean, size As Integer?) As RelationalTypeMapping
Parameters
rowVersion
System.Boolean System.Boolean

A value indicating whether the property is being used as a row version.

keyOrIndex
System.Boolean System.Boolean

A value indicating whether the property is being used as a key and/or index.

size
System.Nullable<System.Int32> System.Nullable(Of System.Int32)

The configured length of the property, or null if it is unbounded.

Returns

The mapping to be used for the property.