閱讀英文版本

分享方式:


IPropertyNullabilityChangedConvention.ProcessPropertyNullabilityChanged 方法

定義

多載

ProcessPropertyNullabilityChanged(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

在屬性的可為 Null 性變更之後呼叫。

C#
public void ProcessPropertyNullabilityChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder> context);

參數

propertyBuilder
IConventionPropertyBuilder

屬性的產生器。

context
IConventionContext<IConventionPropertyBuilder>

與慣例執行相關聯的其他資訊。

適用於

Entity Framework Core 3.1 和 Entity Framework Core 3.0
產品 版本
Entity Framework Core 3.0, 3.1

ProcessPropertyNullabilityChanged(IConventionPropertyBuilder, IConventionContext<Nullable<Boolean>>)

來源:
IPropertyNullabilityChangedConvention.cs
來源:
IPropertyNullabilityChangedConvention.cs
來源:
IPropertyNullabilityChangedConvention.cs

在屬性的可為 Null 性變更之後呼叫。

C#
public void ProcessPropertyNullabilityChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<bool?> context);

參數

propertyBuilder
IConventionPropertyBuilder

屬性的產生器。

context
IConventionContext<Nullable<Boolean>>

與慣例執行相關聯的其他資訊。

適用於

Entity Framework Core 9.0 和其他版本
產品 版本
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0