語言

RelationalAggregateMethodCallTranslatorProviderDependencies 建構函式

定義

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalAggregateMethodCallTranslatorProviderDependencies(Microsoft.EntityFrameworkCore.Query.ISqlExpressionFactory sqlExpressionFactory, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.IAggregateMethodCallTranslatorPlugin> plugins, Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.RelationalAggregateMethodCallTranslatorProviderDependencies : Microsoft.EntityFrameworkCore.Query.ISqlExpressionFactory * seq<Microsoft.EntityFrameworkCore.Query.IAggregateMethodCallTranslatorPlugin> * Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Query.RelationalAggregateMethodCallTranslatorProviderDependencies
Public Sub New (sqlExpressionFactory As ISqlExpressionFactory, plugins As IEnumerable(Of IAggregateMethodCallTranslatorPlugin), typeMappingSource As IRelationalTypeMappingSource)

參數

sqlExpressionFactory
ISqlExpressionFactory
typeMappingSource
IRelationalTypeMappingSource
屬性

備註

請勿直接從任何一個提供者或應用程式代碼呼叫此建構器,因為隨著新增相依關係,該結構可能會改變。 相反地,請在建構子中使用這個型態,讓依賴注入容器自動建立並注入實例。 要建立一個替換部分依賴服務的實例,首先從相依注入容器中解析該物件,然後使用 C# 的 'with' 運算子替換所選服務。 在此過程中,切勿呼叫建構者。

適用於