MigrationsSqlGeneratorDependencies.With 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>) |
複製此相依性參數物件,並取代一個服務。 |
With(IDiagnosticsLogger<DbLoggerCategory.Migrations>) |
複製此相依性參數物件,並取代一個服務。 |
With(ILoggingOptions) |
複製此相依性參數物件,並取代一個服務。 |
With(ICurrentDbContext) |
複製此相依性參數物件,並取代一個服務。 |
With(IRelationalCommandBuilderFactory) |
複製此相依性參數物件,並取代一個服務。 |
With(IRelationalTypeMapper) |
已淘汰.
複製此相依性參數物件,並取代一個服務。 |
With(IRelationalTypeMappingSource) |
複製此相依性參數物件,並取代一個服務。 |
With(ISqlGenerationHelper) |
複製此相依性參數物件,並取代一個服務。 |
With(ISingletonUpdateSqlGenerator) |
複製此相依性參數物件,並取代一個服務。 |
With(IUpdateSqlGenerator) |
複製此相依性參數物件,並取代一個服務。 |
With(IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)) As MigrationsSqlGeneratorDependencies
參數
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IDiagnosticsLogger<DbLoggerCategory.Migrations>)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> migrationsLogger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Migrations> -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (migrationsLogger As IDiagnosticsLogger(Of DbLoggerCategory.Migrations)) As MigrationsSqlGeneratorDependencies
參數
- migrationsLogger
- IDiagnosticsLogger<DbLoggerCategory.Migrations>
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(ILoggingOptions)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (loggingOptions As ILoggingOptions) As MigrationsSqlGeneratorDependencies
參數
- loggingOptions
- ILoggingOptions
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(ICurrentDbContext)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (currentContext As ICurrentDbContext) As MigrationsSqlGeneratorDependencies
參數
- currentContext
- ICurrentDbContext
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IRelationalCommandBuilderFactory)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory commandBuilderFactory);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (commandBuilderFactory As IRelationalCommandBuilderFactory) As MigrationsSqlGeneratorDependencies
參數
- commandBuilderFactory
- IRelationalCommandBuilderFactory
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IRelationalTypeMapper)
警告
Use IRelationalTypeMappingSource.
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
[System.Obsolete("Use IRelationalTypeMappingSource.")]
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper typeMapper);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
[<System.Obsolete("Use IRelationalTypeMappingSource.")>]
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMapper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (typeMapper As IRelationalTypeMapper) As MigrationsSqlGeneratorDependencies
參數
- typeMapper
- IRelationalTypeMapper
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
- 屬性
適用於
With(IRelationalTypeMappingSource)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource typeMappingSource);
member this.With : Microsoft.EntityFrameworkCore.Storage.IRelationalTypeMappingSource -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (typeMappingSource As IRelationalTypeMappingSource) As MigrationsSqlGeneratorDependencies
參數
- typeMappingSource
- IRelationalTypeMappingSource
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(ISqlGenerationHelper)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper sqlGenerationHelper);
member this.With : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (sqlGenerationHelper As ISqlGenerationHelper) As MigrationsSqlGeneratorDependencies
參數
- sqlGenerationHelper
- ISqlGenerationHelper
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(ISingletonUpdateSqlGenerator)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator updateSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (updateSqlGenerator As ISingletonUpdateSqlGenerator) As MigrationsSqlGeneratorDependencies
參數
- updateSqlGenerator
- Microsoft.EntityFrameworkCore.Update.Internal.ISingletonUpdateSqlGenerator
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。
適用於
With(IUpdateSqlGenerator)
複製此相依性參數物件,並取代一個服務。
public Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies With (Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator updateSqlGenerator);
member this.With : Microsoft.EntityFrameworkCore.Update.IUpdateSqlGenerator -> Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies
Public Function With (updateSqlGenerator As IUpdateSqlGenerator) As MigrationsSqlGeneratorDependencies
參數
- updateSqlGenerator
- IUpdateSqlGenerator
取代此類型的目前相依性。
傳回
已取代指定服務的新參數物件。