TypeMappingSource.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
| Name | Description |
|---|---|
| FindMapping(IElementType) |
Finds the type mapping for a given IElementType. |
| 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(MemberInfo, IModel, Boolean) | |
| FindMapping(Type, IModel, CoreTypeMapping) |
Finds the type mapping for a given Type, taking pre-convention configuration into the account. |
FindMapping(IElementType)
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
Finds the type mapping for a given IElementType.
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping(Microsoft.EntityFrameworkCore.Metadata.IElementType elementType);
override this.FindMapping : Microsoft.EntityFrameworkCore.Metadata.IElementType -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides Function FindMapping (elementType As IElementType) As CoreTypeMapping
Parameters
- elementType
- IElementType
The property.
Returns
The type mapping, or null if none was found.
Remarks
Note: providers should typically not need to override this method.
Applies to
FindMapping(IProperty)
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
Finds the type mapping for a given IProperty.
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping(Microsoft.EntityFrameworkCore.Metadata.IProperty property);
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping(Microsoft.EntityFrameworkCore.Metadata.IProperty property);
override this.FindMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides Function FindMapping (property As IProperty) As CoreTypeMapping
Parameters
- property
- IProperty
The property.
Returns
The type mapping, or null if none was found.
Remarks
Note: providers should typically not need to override this method.
Applies to
FindMapping(MemberInfo)
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
Finds the type mapping for a given MemberInfo representing a field or a property of a CLR type.
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping(System.Reflection.MemberInfo member);
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping(System.Reflection.MemberInfo member);
override this.FindMapping : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides 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)
Note: providers should typically not need to override this method.
Applies to
FindMapping(Type)
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
Finds the type mapping for a given Type.
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping(Type type);
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping FindMapping(Type type);
override this.FindMapping : Type -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides 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, CoreTypeMapping)
Note: providers should typically not need to override this method.
Applies to
FindMapping(Type, IModel)
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
Finds the type mapping for a given Type, taking pre-convention configuration into the account.
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping(Type type, Microsoft.EntityFrameworkCore.Metadata.IModel model);
override this.FindMapping : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides 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
FindMapping(MemberInfo, IModel, Boolean)
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping(System.Reflection.MemberInfo member, Microsoft.EntityFrameworkCore.Metadata.IModel model, bool useAttributes);
override this.FindMapping : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IModel * bool -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides Function FindMapping (member As MemberInfo, model As IModel, useAttributes As Boolean) As CoreTypeMapping
Parameters
- member
- MemberInfo
- model
- IModel
- useAttributes
- Boolean
Returns
Applies to
FindMapping(Type, IModel, CoreTypeMapping)
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
- Source:
- TypeMappingSource.cs
Finds the type mapping for a given Type, taking pre-convention configuration into the account.
public override Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? FindMapping(Type type, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? elementMapping = default);
override this.FindMapping : Type * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Overrides Function FindMapping (type As Type, model As IModel, Optional elementMapping As CoreTypeMapping = Nothing) As CoreTypeMapping
Parameters
- type
- Type
The CLR type.
- model
- IModel
The model.
- elementMapping
- CoreTypeMapping
The element mapping to use, if known.
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).