HistoryRepositoryDependencies.With 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
With(IRelationalDatabaseCreator) |
複製此相依性參數物件,並取代一個服務。 |
With(IRelationalConnection) |
複製此相依性參數物件,並取代一個服務。 |
With(IRawSqlCommandBuilder) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrationsSqlGenerator) |
複製此相依性參數物件,並取代一個服務。 |
With(IMigrationsModelDiffer) |
複製此相依性參數物件,並取代一個服務。 |
With(ICoreConventionSetBuilder) |
複製此相依性參數物件,並取代一個服務。 |
With(ModelDependencies) |
複製此相依性參數物件,並取代一個服務。 |
With(IConventionSetBuilder) |
複製此相依性參數物件,並取代一個服務。 |
With(IRelationalTypeMappingSource) |
複製此相依性參數物件,並取代一個服務。 |
With(IDbContextOptions) |
複製此相依性參數物件,並取代一個服務。 |
With(ICurrentDbContext) |
複製此相依性參數物件,並取代一個服務。 |
With(IDiagnosticsLogger<DbLoggerCategory.Model>) |
已淘汰.
複製此相依性參數物件,並取代一個服務。 |
With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>) |
複製此相依性參數物件,並取代一個服務。 |
With(IConventionSetBuilder) |
複製此相依性參數物件,並取代一個服務。 |
With(ISqlGenerationHelper) |
複製此相依性參數物件,並取代一個服務。 |
With(IRelationalDatabaseCreator)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalDatabaseCreator databaseCreator);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalDatabaseCreator -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (databaseCreator As IRelationalDatabaseCreator) As HistoryRepositoryDependencies
參數
- databaseCreator
- IRelationalDatabaseCreator
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IRelationalConnection)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (connection As IRelationalConnection) As HistoryRepositoryDependencies
參數
- connection
- IRelationalConnection
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IRawSqlCommandBuilder)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRawSqlCommandBuilder rawSqlCommandBuilder);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRawSqlCommandBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (rawSqlCommandBuilder As IRawSqlCommandBuilder) As HistoryRepositoryDependencies
參數
- rawSqlCommandBuilder
- IRawSqlCommandBuilder
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IMigrationsSqlGenerator)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator migrationsSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (migrationsSqlGenerator As IMigrationsSqlGenerator) As HistoryRepositoryDependencies
參數
- migrationsSqlGenerator
- IMigrationsSqlGenerator
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(IMigrationsModelDiffer)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer modelDiffer);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (modelDiffer As IMigrationsModelDiffer) As HistoryRepositoryDependencies
參數
- modelDiffer
- IMigrationsModelDiffer
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(ICoreConventionSetBuilder)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder coreConventionSetBuilder);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (coreConventionSetBuilder As ICoreConventionSetBuilder) As HistoryRepositoryDependencies
參數
- coreConventionSetBuilder
- Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ICoreConventionSetBuilder
建立模型時要使用的核心慣例。
傳回
取代指定服務的新參數物件。
適用於
With(ModelDependencies)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (modelDependencies As ModelDependencies) As HistoryRepositoryDependencies
參數
- modelDependencies
- ModelDependencies
建立模型時要使用的核心慣例。
傳回
取代指定服務的新參數物件。
適用於
With(IConventionSetBuilder)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (conventionSetBuilder As IConventionSetBuilder) As HistoryRepositoryDependencies
參數
- conventionSetBuilder
- IConventionSetBuilder
建立模型時要使用的核心慣例。
傳回
取代指定服務的新參數物件。
適用於
With(IRelationalTypeMappingSource)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (typeMappingSource As IRelationalTypeMappingSource) As HistoryRepositoryDependencies
參數
- typeMappingSource
- IRelationalTypeMappingSource
類型對應器。
傳回
取代指定服務的新參數物件。
適用於
With(IDbContextOptions)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions options);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (options As IDbContextOptions) As HistoryRepositoryDependencies
參數
- options
- IDbContextOptions
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。
適用於
With(ICurrentDbContext)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (currentContext As ICurrentDbContext) As HistoryRepositoryDependencies
參數
- currentContext
- ICurrentDbContext
類型對應器。
傳回
取代指定服務的新參數物件。
適用於
With(IDiagnosticsLogger<DbLoggerCategory.Model>)
警告
此 API 現已淘汰。
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> modelLogger);
[System.Obsolete]
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> modelLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
[<System.Obsolete>]
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (modelLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model)) As HistoryRepositoryDependencies
參數
- modelLogger
- IDiagnosticsLogger<DbLoggerCategory.Model>
類型對應器。
傳回
取代指定服務的新參數物件。
- 屬性
適用於
With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> commandLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (commandLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As HistoryRepositoryDependencies
參數
- commandLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Command>
命令記錄器。
傳回
取代指定服務的新參數物件。
適用於
With(IConventionSetBuilder)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder);
member this.With : Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (conventionSetBuilder As IConventionSetBuilder) As HistoryRepositoryDependencies
參數
- conventionSetBuilder
- Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder
建立模型時所要使用的慣例。
傳回
取代指定服務的新參數物件。
適用於
With(ISqlGenerationHelper)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies With (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
member this.With : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies
Public Function With (sqlGenerationHelper As ISqlGenerationHelper) As HistoryRepositoryDependencies
參數
- sqlGenerationHelper
- ISqlGenerationHelper
取代此類型的目前相依性。
傳回
取代指定服務的新參數物件。