共用方式為


CSharpMigrationsGeneratorDependencies 類別

定義

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

public sealed class CSharpMigrationsGeneratorDependencies
public sealed class CSharpMigrationsGeneratorDependencies : IEquatable<Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGeneratorDependencies>
type CSharpMigrationsGeneratorDependencies = class
type CSharpMigrationsGeneratorDependencies = class
    interface IEquatable<CSharpMigrationsGeneratorDependencies>
Public NotInheritable Class CSharpMigrationsGeneratorDependencies
Public NotInheritable Class CSharpMigrationsGeneratorDependencies
Implements IEquatable(Of CSharpMigrationsGeneratorDependencies)
繼承
CSharpMigrationsGeneratorDependencies
實作

備註

請勿直接從提供者或應用程式程式碼建構此類別的實例,因為建構函式簽章可能會在新增相依性時變更。 相反地,請在建構函式中使用這個類型,讓相依性插入容器自動建立和插入實例。 若要建立已取代某些相依服務的實例,請先從相依性插入容器解析物件,然後使用 C# 'with' 運算子取代選取的服務。 請勿在此進程中的任何時間點呼叫建構函式。

建構函式

CSharpMigrationsGeneratorDependencies(ICSharpHelper, ICSharpMigrationOperationGenerator, ICSharpSnapshotGenerator)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

屬性

CSharpHelper

C# 協助程式。

CSharpMigrationOperationGenerator

C# 移轉作業產生器。

CSharpSnapshotGenerator

C# 模型快照集產生器。

方法

<Clone>$()

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

Equals(CSharpMigrationsGeneratorDependencies)

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

Equals(Object)

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

GetHashCode()

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

ToString()

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

With(ICSharpHelper)

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

With(ICSharpMigrationOperationGenerator)

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

With(ICSharpSnapshotGenerator)

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

運算子

Equality(CSharpMigrationsGeneratorDependencies, CSharpMigrationsGeneratorDependencies)

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

Inequality(CSharpMigrationsGeneratorDependencies, CSharpMigrationsGeneratorDependencies)

的服務相依性參數類別 CSharpMigrationsGenerator

此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。

適用於