ITypeMappingSource.FindMapping Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FindMapping(IProperty) |
Finds the type mapping for a given IProperty. |
FindMapping(MemberInfo) |
Finds the type mapping for a given MemberInfo representing a field or a property of a CLR type. |
FindMapping(Type) |
Finds the type mapping for a given Type. |
FindMapping(Type, IModel) |
Finds the type mapping for a given Type, taking pre-convention configuration into the account. |
FindMapping(IProperty)
Finds the type mapping for a given IProperty.
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member FindMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (property As IProperty) As CoreTypeMapping
Parameters
- property
- IProperty
The property.
Returns
The type mapping, or null
if none was found.
Applies to
FindMapping(MemberInfo)
Finds the type mapping for a given MemberInfo representing a field or a property of a CLR type.
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping (System.Reflection.MemberInfo member);
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (System.Reflection.MemberInfo member);
abstract member FindMapping : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (member As MemberInfo) As CoreTypeMapping
Parameters
- member
- MemberInfo
The field or property.
Returns
The type mapping, or null
if none was found.
Remarks
Note: Only call this method if there is no IProperty available, otherwise call FindMapping(IProperty)
Applies to
FindMapping(Type)
Finds the type mapping for a given Type.
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping (Type type);
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Type type);
abstract member FindMapping : Type -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (type As Type) As CoreTypeMapping
Parameters
- type
- Type
The CLR type.
Returns
The type mapping, or null
if none was found.
Remarks
Note: Only call this method if there is no IProperty or IModel available, otherwise call FindMapping(IProperty) or FindMapping(Type, IModel)
Applies to
FindMapping(Type, IModel)
Finds the type mapping for a given Type, taking pre-convention configuration into the account.
public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping (Type type, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member FindMapping : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function FindMapping (type As Type, model As IModel) As CoreTypeMapping
Parameters
- type
- Type
The CLR type.
- model
- IModel
The model.
Returns
The type mapping, or null
if none was found.
Remarks
Note: Only call this method if there is no IProperty, otherwise call FindMapping(IProperty).
Applies to
Feedback
Submit and view feedback for