C# Class AspNetCorePostgreSQLDockerApp.Repository.DockerCommandsDbSeeder

Show file Open project: DanWahlin/AspNetCorePostgreSQLDockerApp Class Usage Examples

Public Methods

Method Description
DockerCommandsDbSeeder ( ILoggerFactory loggerFactory ) : Microsoft.EntityFrameworkCore
InsertDockerSampleData ( DockerCommandsDbContext db ) : System.Threading.Tasks.Task
SeedAsync ( IServiceProvider serviceProvider ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetDockerCommands ( ) : List

Method Details

DockerCommandsDbSeeder() public method

public DockerCommandsDbSeeder ( ILoggerFactory loggerFactory ) : Microsoft.EntityFrameworkCore
loggerFactory ILoggerFactory
return Microsoft.EntityFrameworkCore

InsertDockerSampleData() public method

public InsertDockerSampleData ( DockerCommandsDbContext db ) : System.Threading.Tasks.Task
db DockerCommandsDbContext
return System.Threading.Tasks.Task

SeedAsync() public method

public SeedAsync ( IServiceProvider serviceProvider ) : System.Threading.Tasks.Task
serviceProvider IServiceProvider
return System.Threading.Tasks.Task