Export (0) Print
Expand All

DropCreateDatabaseIfModelChanges<TContext>.Seed Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

A method that should be overridden to actually add data to the context for seeding. The default implementation does nothing.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

protected virtual void Seed(
	TContext context
)

Parameters

context
Type: TContext
The context to seed.
Show:
© 2014 Microsoft