ByteArrayRelationalTypeMapper ByteArrayRelationalTypeMapper Class

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.

Syntax

Declaration

public class ByteArrayRelationalTypeMapper : IByteArrayRelationalTypeMapperPublic Class ByteArrayRelationalTypeMapper
    Implements IByteArrayRelationalTypeMapper

Inheritance Hierarchy

  • System.Object
    System.Object
  • ByteArrayRelationalTypeMapper
    ByteArrayRelationalTypeMapper

Inherited Members

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

Constructors summary

Initialized a new instance of the ByteArrayRelationalTypeMapper class.

Properties summary

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

Gets the default mapping to be used.

Gets the mapping to be used for key properties

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

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

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

Methods summary

Gets the mapping for a property.

Constructors

  • ByteArrayRelationalTypeMapper(Int32, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, RelationalTypeMapping, Func<Int32, RelationalTypeMapping>)
    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

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)

    Property Value

  • DefaultMapping
    DefaultMapping

    Gets the default mapping to be used.

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

    Property Value

  • KeyMapping
    KeyMapping

    Gets the mapping to be used for key properties

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

    Property Value

  • 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

    Property 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

    Property Value

  • 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

    Property Value

Methods

  • FindMapping(Boolean, Boolean, Nullable<Int32>)
    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<T><System.Int32>
      System.Nullable<T>(Of System.Int32)

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

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll