RelationalTypeMapperExtensions RelationalTypeMapperExtensions Class

Extension methods for the RelationalTypeMapping class.

Syntax

Declaration

public static class RelationalTypeMapperExtensionsPublic Module RelationalTypeMapperExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • RelationalTypeMapperExtensions
    RelationalTypeMapperExtensions

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()

Methods summary

Gets the relational database type for a given property, throwing if no mapping is found.

Gets the mapping that represents the given database type, throwing if no mapping is found.

Gets the relational database type for a given .NET type, throwing if no mapping is found.

Gets the relational database type for a given object, throwing if no mapping is found.

Gets a value indicating whether the given .NET type is mapped.

Methods

  • GetMapping(IRelationalTypeMapper, IProperty)
    GetMapping(IRelationalTypeMapper, IProperty)

    Gets the relational database type for a given property, throwing if no mapping is found.

    public static RelationalTypeMapping GetMapping(this IRelationalTypeMapper typeMapper, IProperty property)<ExtensionAttribute>
    Public Shared Function GetMapping(typeMapper As IRelationalTypeMapper, property As IProperty) As RelationalTypeMapping

    Parameters

    Returns

  • GetMapping(IRelationalTypeMapper, String)
    GetMapping(IRelationalTypeMapper, String)

    Gets the mapping that represents the given database type, throwing if no mapping is found.

    public static RelationalTypeMapping GetMapping(this IRelationalTypeMapper typeMapper, string typeName)<ExtensionAttribute>
    Public Shared Function GetMapping(typeMapper As IRelationalTypeMapper, typeName As String) As RelationalTypeMapping

    Parameters

    Returns

  • GetMapping(IRelationalTypeMapper, Type)
    GetMapping(IRelationalTypeMapper, Type)

    Gets the relational database type for a given .NET type, throwing if no mapping is found.

    public static RelationalTypeMapping GetMapping(this IRelationalTypeMapper typeMapper, Type clrType)<ExtensionAttribute>
    Public Shared Function GetMapping(typeMapper As IRelationalTypeMapper, clrType As Type) As RelationalTypeMapping

    Parameters

    Returns

  • GetMappingForValue(IRelationalTypeMapper, Object)
    GetMappingForValue(IRelationalTypeMapper, Object)

    Gets the relational database type for a given object, throwing if no mapping is found.

    public static RelationalTypeMapping GetMappingForValue(this IRelationalTypeMapper typeMapper, object value)<ExtensionAttribute>
    Public Shared Function GetMappingForValue(typeMapper As IRelationalTypeMapper, value As Object) As RelationalTypeMapping

    Parameters

    Returns

  • IsTypeMapped(IRelationalTypeMapper, Type)
    IsTypeMapped(IRelationalTypeMapper, Type)

    Gets a value indicating whether the given .NET type is mapped.

    public static bool IsTypeMapped(this IRelationalTypeMapper typeMapper, Type clrType)<ExtensionAttribute>
    Public Shared Function IsTypeMapped(typeMapper As IRelationalTypeMapper, clrType As Type) As Boolean

    Parameters

    Returns

    • System.Boolean
      System.Boolean

      True if the type can be mapped; otherwise false.

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll