次の方法で共有


RuntimeModel.AddTypeMappingConfiguration メソッド

定義

スカラー型の構成を追加します。

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeTypeMappingConfiguration AddTypeMappingConfiguration (Type clrType, int? maxLength = default, bool? unicode = default, int? precision = default, int? scale = default, Type? providerPropertyType = default, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter? valueConverter = default);
abstract member AddTypeMappingConfiguration : Type * Nullable<int> * Nullable<bool> * Nullable<int> * Nullable<int> * Type * Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter -> Microsoft.EntityFrameworkCore.Metadata.RuntimeTypeMappingConfiguration
override this.AddTypeMappingConfiguration : Type * Nullable<int> * Nullable<bool> * Nullable<int> * Nullable<int> * Type * Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter -> Microsoft.EntityFrameworkCore.Metadata.RuntimeTypeMappingConfiguration
Public Overridable Function AddTypeMappingConfiguration (clrType As Type, Optional maxLength As Nullable(Of Integer) = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional providerPropertyType As Type = Nothing, Optional valueConverter As ValueConverter = Nothing) As RuntimeTypeMappingConfiguration

パラメーター

clrType
Type

プロパティが保持する値の型。

maxLength
Nullable<Int32>

このプロパティ型で許可されるデータの最大長。

unicode
Nullable<Boolean>

プロパティが Unicode 文字を保持できるかどうかを示す値。

precision
Nullable<Int32>

このプロパティ型で許可されるデータの有効桁数。

scale
Nullable<Int32>

このプロパティ型で許可されるデータのスケール。

providerPropertyType
Type

プロパティ値がデータベース プロバイダーに送信される前に変換される型。

valueConverter
ValueConverter

この型のカスタム ValueConverter

戻り値

新しく作成されたプロパティ。

適用対象