共用方式為


ValueGeneratorSelectorDependencies.With(IValueGeneratorCache) 方法

定義

複製此相依性參數物件,並取代一個服務。

public Microsoft.EntityFrameworkCore.ValueGeneration.ValueGeneratorSelectorDependencies With (Microsoft.EntityFrameworkCore.ValueGeneration.IValueGeneratorCache cache);
member this.With : Microsoft.EntityFrameworkCore.ValueGeneration.IValueGeneratorCache -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGeneratorSelectorDependencies
Public Function With (cache As IValueGeneratorCache) As ValueGeneratorSelectorDependencies

參數

cache
IValueGeneratorCache

取代此類型的目前相依性。

傳回

取代指定服務的新參數物件。

適用於