C# Class Chess.Data.Seeding.ApplicationDbContextSeeder

Inheritance: ISeeder
Show file Open project: psp87/Chess

Public Methods

Method Description
SeedAsync ( ApplicationDbContext dbContext, IServiceProvider serviceProvider ) : Task

Private Methods

Method Description
GetInstances ( ) : List

Create a list of all classes in the running Assembly having a particular interface that doesn't match the current running class type.

Method Details

SeedAsync() public method

public SeedAsync ( ApplicationDbContext dbContext, IServiceProvider serviceProvider ) : Task
dbContext ApplicationDbContext
serviceProvider IServiceProvider
return Task