MigrationsScaffolderDependencies.With Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
With(IMigrator) |
Clones this dependency parameter object with one service replaced. |
With(IMigrationsModelDiffer) |
Clones this dependency parameter object with one service replaced. |
With(IMigrationsIdGenerator) |
Clones this dependency parameter object with one service replaced. |
With(IMigrationsAssembly) |
Clones this dependency parameter object with one service replaced. |
With(IHistoryRepository) |
Clones this dependency parameter object with one service replaced. |
With(IModel) |
Clones this dependency parameter object with one service replaced. |
With(IMigrationsCodeGenerator) |
Obsolete.
Clones this dependency parameter object with one service replaced. |
With(ISnapshotModelProcessor) |
Clones this dependency parameter object with one service replaced. |
With(ICurrentDbContext) |
Clones this dependency parameter object with one service replaced. |
With(ICurrentDbContext) |
Clones this dependency parameter object with one service replaced. |
With(IOperationReporter) |
Clones this dependency parameter object with one service replaced. |
With(IMigrationsCodeGeneratorSelector) |
Clones this dependency parameter object with one service replaced. |
With(IDatabaseProvider) |
Clones this dependency parameter object with one service replaced. |
With(IMigrator)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrator migrator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrator As IMigrator) As MigrationsScaffolderDependencies
Parameters
- migrator
- IMigrator
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IMigrationsModelDiffer)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer migrationsModelDiffer);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsModelDiffer As IMigrationsModelDiffer) As MigrationsScaffolderDependencies
Parameters
- migrationsModelDiffer
- IMigrationsModelDiffer
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IMigrationsIdGenerator)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator migrationsIdGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsIdGenerator As IMigrationsIdGenerator) As MigrationsScaffolderDependencies
Parameters
- migrationsIdGenerator
- IMigrationsIdGenerator
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IMigrationsAssembly)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly migrationsAssembly);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsAssembly As IMigrationsAssembly) As MigrationsScaffolderDependencies
Parameters
- migrationsAssembly
- IMigrationsAssembly
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IHistoryRepository)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository historyRepository);
member this.With : Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (historyRepository As IHistoryRepository) As MigrationsScaffolderDependencies
Parameters
- historyRepository
- IHistoryRepository
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IModel)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Metadata.IModel model);
member this.With : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (model As IModel) As MigrationsScaffolderDependencies
Parameters
- model
- IModel
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IMigrationsCodeGenerator)
Caution
Use an MigrationCodeGeneratorSelector instead.
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator migrationCodeGenerator);
[System.Obsolete("Use an MigrationCodeGeneratorSelector instead.")]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator migrationCodeGenerator);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<System.Obsolete("Use an MigrationCodeGeneratorSelector instead.")>]
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGenerator -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationCodeGenerator As IMigrationsCodeGenerator) As MigrationsScaffolderDependencies
Parameters
- migrationCodeGenerator
- IMigrationsCodeGenerator
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
- Attributes
Applies to
With(ISnapshotModelProcessor)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor snapshotModelProcessor);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (snapshotModelProcessor As ISnapshotModelProcessor) As MigrationsScaffolderDependencies
Parameters
- snapshotModelProcessor
- Microsoft.EntityFrameworkCore.Migrations.Internal.ISnapshotModelProcessor
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
- Attributes
Applies to
With(ICurrentDbContext)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext currentDbContext);
member this.With : Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (currentDbContext As ICurrentDbContext) As MigrationsScaffolderDependencies
Parameters
- currentDbContext
- Microsoft.EntityFrameworkCore.Internal.ICurrentDbContext
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(ICurrentDbContext)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
member this.With : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (currentContext As ICurrentDbContext) As MigrationsScaffolderDependencies
Parameters
- currentContext
- ICurrentDbContext
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IOperationReporter)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter operationReporter);
member this.With : Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
member this.With : Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (operationReporter As IOperationReporter) As MigrationsScaffolderDependencies
Parameters
- operationReporter
- Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
- Attributes
Applies to
With(IMigrationsCodeGeneratorSelector)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector migrationsCodeGeneratorSelector);
member this.With : Microsoft.EntityFrameworkCore.Migrations.Design.IMigrationsCodeGeneratorSelector -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (migrationsCodeGeneratorSelector As IMigrationsCodeGeneratorSelector) As MigrationsScaffolderDependencies
Parameters
- migrationsCodeGeneratorSelector
- IMigrationsCodeGeneratorSelector
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
With(IDatabaseProvider)
Clones this dependency parameter object with one service replaced.
public Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies With (Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider databaseProvider);
member this.With : Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider -> Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolderDependencies
Public Function With (databaseProvider As IDatabaseProvider) As MigrationsScaffolderDependencies
Parameters
- databaseProvider
- IDatabaseProvider
A replacement for the current dependency of this type.
Returns
A new parameter object with the given service replaced.
Applies to
Entity Framework