語言

ValueGenerator<TValue>.NextValue(EntityEntry) 方法

定義

會獲得一個價值,要分配給某個物業。

protected override object NextValue(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entry);
protected override object? NextValue(Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry entry);
override this.NextValue : Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry -> obj
Protected Overrides Function NextValue (entry As EntityEntry) As Object

參數

entry
EntityEntry

是為該價值產生的實體進行變更追蹤的分錄。

傳回

該財產應被賦予的價值。

備註

更多資訊與範例請參閱 EF 核心價值生成 。

適用於