IRelationalTypeMapper.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) |
Gets the relational database type for the given property. Returns null if no mapping is found. |
FindMapping(String) |
Gets the mapping that represents the given database type. Returns null if no mapping is found. |
FindMapping(Type) |
Gets the relational database type for a given .NET type. Returns null if no mapping is found. |
FindMapping(IProperty)
Gets the relational database type for the given property. Returns null if no mapping is found.
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member FindMapping : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (property As IProperty) As RelationalTypeMapping
Parameters
- property
- IProperty
The property to get the mapping for.
Returns
The type mapping to be used.
Applies to
FindMapping(String)
Gets the mapping that represents the given database type. Returns null if no mapping is found.
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (string storeType);
abstract member FindMapping : string -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (storeType As String) As RelationalTypeMapping
Parameters
- storeType
- String
The type to get the mapping for.
Returns
The type mapping to be used.
Applies to
FindMapping(Type)
Gets the relational database type for a given .NET type. Returns null if no mapping is found.
public Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping FindMapping (Type clrType);
abstract member FindMapping : Type -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
Public Function FindMapping (clrType As Type) As RelationalTypeMapping
Parameters
- clrType
- Type
The type to get the mapping for.
Returns
The type mapping to be used.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor