CreateDatabaseIfNotExists<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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework