次の方法で共有


RelationalComplexTypePropertyBuilderExtensions.HasColumnType メソッド

定義

オーバーロード

HasColumnType(ComplexTypePropertyBuilder, String)

リレーショナル データベースを対象とする場合にプロパティがマップされる列のデータ型を構成します。 これは、有効桁数、小数点以下桁数、長さなどを含む完全な型名である必要があります。

HasColumnType<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

リレーショナル データベースを対象とする場合にプロパティがマップされる列のデータ型を構成します。 これは、有効桁数、小数点以下桁数、長さなどを含む完全な型名である必要があります。

HasColumnType(ComplexTypePropertyBuilder, String)

リレーショナル データベースを対象とする場合にプロパティがマップされる列のデータ型を構成します。 これは、有効桁数、小数点以下桁数、長さなどを含む完全な型名である必要があります。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasColumnType (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder, string? typeName);
static member HasColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasColumnType (propertyBuilder As ComplexTypePropertyBuilder, typeName As String) As ComplexTypePropertyBuilder

パラメーター

propertyBuilder
ComplexTypePropertyBuilder

構成されているプロパティのビルダー。

typeName
String

列のデータ型の名前。

戻り値

複数の呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

詳細と例については、「 エンティティ型とリレーションシップのモデル 化」を参照してください。

適用対象

HasColumnType<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

リレーショナル データベースを対象とする場合にプロパティがマップされる列のデータ型を構成します。 これは、有効桁数、小数点以下桁数、長さなどを含む完全な型名である必要があります。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasColumnType<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder, string? typeName);
static member HasColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function HasColumnType(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty), typeName As String) As ComplexTypePropertyBuilder(Of TProperty)

型パラメーター

TProperty

構成されるプロパティの型。

パラメーター

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

構成されているプロパティのビルダー。

typeName
String

列のデータ型の名前。

戻り値

複数の呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

詳細と例については、「 エンティティ型とリレーションシップのモデル 化」を参照してください。

適用対象