RelationalTypeMapperExtensions RelationalTypeMapperExtensions Class

Definition

Extension methods for the RelationalTypeMapping class.

public static class RelationalTypeMapperExtensions
Public Module RelationalTypeMapperExtensions
Inheritance
System.ObjectSystem.Object
RelationalTypeMapperExtensionsRelationalTypeMapperExtensions

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

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
typeMapper
IRelationalTypeMapper IRelationalTypeMapper

The type mapper.

property
IProperty IProperty

The property to get the mapping for.

Returns

The type mapping to be used.

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
typeMapper
IRelationalTypeMapper IRelationalTypeMapper

The type mapper.

typeName
System.String System.String

The type to get the mapping for.

Returns

The type mapping to be used.

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
typeMapper
IRelationalTypeMapper IRelationalTypeMapper

The type mapper.

clrType
System.Type System.Type

The type to get the mapping for.

Returns

The type mapping to be used.

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
typeMapper
IRelationalTypeMapper IRelationalTypeMapper

The type mapper.

value
System.Object System.Object

The object to get the mapping for.

Returns

The type mapping to be used.

GetType() GetType()

Inherited from System.Object

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
typeMapper
IRelationalTypeMapper IRelationalTypeMapper

The type mapper.

clrType
System.Type System.Type

The .NET type.

Returns
System.Boolean System.Boolean

True if the type can be mapped; otherwise false.

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object