Share via


RelationalComplexTypePropertyBuilderExtensions.HasDefaultValue メソッド

定義

オーバーロード

HasDefaultValue(ComplexTypePropertyBuilder)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

HasDefaultValue(ComplexTypePropertyBuilder, Object)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

HasDefaultValue<TProperty>(ComplexTypePropertyBuilder<TProperty>)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

HasDefaultValue<TProperty>(ComplexTypePropertyBuilder<TProperty>, Object)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

HasDefaultValue(ComplexTypePropertyBuilder)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder);
static member HasDefaultValue : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasDefaultValue (propertyBuilder As ComplexTypePropertyBuilder) As ComplexTypePropertyBuilder

パラメーター

propertyBuilder
ComplexTypePropertyBuilder

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

戻り値

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

注釈

引数を指定せずに呼び出されると、このメソッドは、列に何らかの種類の既定値制約があることを EF に指示します。正確に何かを指定する必要はありません。 これは、EF を既存のデータベースにマッピングする場合に役立ちます。

詳細と例については、「 データベースの既定値 」を参照してください。

適用対象

HasDefaultValue(ComplexTypePropertyBuilder, Object)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasDefaultValue (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder, object? value);
static member HasDefaultValue : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasDefaultValue (propertyBuilder As ComplexTypePropertyBuilder, value As Object) As ComplexTypePropertyBuilder

パラメーター

propertyBuilder
ComplexTypePropertyBuilder

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

value
Object

列の既定値です。

戻り値

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

注釈

詳細と例については、「 データベースの既定値 」を参照してください。

適用対象

HasDefaultValue<TProperty>(ComplexTypePropertyBuilder<TProperty>)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasDefaultValue<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder);
static member HasDefaultValue : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function HasDefaultValue(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty)) As ComplexTypePropertyBuilder(Of TProperty)

型パラメーター

TProperty

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

パラメーター

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

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

戻り値

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

注釈

引数を指定せずに呼び出されると、このメソッドは、列に何らかの種類の既定値制約があることを EF に指示します。正確に何かを指定する必要はありません。 これは、EF を既存のデータベースにマッピングする場合に役立ちます。

詳細と例については、「 データベースの既定値 」を参照してください。

適用対象

HasDefaultValue<TProperty>(ComplexTypePropertyBuilder<TProperty>, Object)

リレーショナル データベースを対象とする場合にプロパティがマップされる列の既定値を構成します。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasDefaultValue<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder, object? value);
static member HasDefaultValue : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function HasDefaultValue(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty), value As Object) As ComplexTypePropertyBuilder(Of TProperty)

型パラメーター

TProperty

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

パラメーター

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

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

value
Object

列の既定値です。

戻り値

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

注釈

詳細と例については、「 データベースの既定値 」を参照してください。

適用対象