共用方式為


ValueGenerator.WithConverter(ValueConverter) 方法

定義

包裝此專案 ValueGenerator ,使其處理以指定 ValueConverter 轉換的值。

public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator WithConverter (Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter converter);
abstract member WithConverter : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.WithConverter : Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Overridable Function WithConverter (converter As ValueConverter) As ValueGenerator

參數

converter
ValueConverter

值轉換器。

傳回

可搭配已轉換值使用的新值產生器。

適用於