DropCreateDatabaseIfModelChanges<TContext>.Seed(TContext) 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.
A method that should be overridden to actually add data to the context for seeding. The default implementation does nothing.
protected virtual void Seed (TContext context);
abstract member Seed : 'Context -> unit
override this.Seed : 'Context -> unit
Protected Overridable Sub Seed (context As TContext)
Parameters
- context
- TContext
The context to seed.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework