語言

AnnotationCodeGeneratorDependencies 建構函式

定義

多載

名稱 Description
AnnotationCodeGeneratorDependencies()

建立服務相依參數物件。AnnotationCodeGenerator

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

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

AnnotationCodeGeneratorDependencies(IRelationalTypeMappingSource)

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

AnnotationCodeGeneratorDependencies()

來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs

建立服務相依參數物件。AnnotationCodeGenerator

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

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

public AnnotationCodeGeneratorDependencies();
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public AnnotationCodeGeneratorDependencies();
Public Sub New ()
屬性

適用於

AnnotationCodeGeneratorDependencies(IRelationalTypeMappingSource)

來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs
來源:
AnnotationCodeGeneratorDependencies.cs

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

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public AnnotationCodeGeneratorDependencies(Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource relationalTypeMappingSource);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Design.AnnotationCodeGeneratorDependencies : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Design.AnnotationCodeGeneratorDependencies
Public Sub New (relationalTypeMappingSource As IRelationalTypeMappingSource)

參數

relationalTypeMappingSource
IRelationalTypeMappingSource
屬性

備註

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

適用於