IDbSetExtensions Class
Entity Framework 5.0
A set of extension methods for IDbSet(Of TEntity).
Namespace: System.Data.Entity.Migrations
Assembly: EntityFramework (in EntityFramework.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | AddOrUpdate(Of TEntity)(IDbSet(Of TEntity), TEntity()) | Adds or updates entities by key when SaveChanges is called. Equivalent to an "upsert" operation from database terminology. This method can be useful when seeding data using Migrations. |
![]() ![]() | AddOrUpdate(Of TEntity)(IDbSet(Of TEntity), Expression(Of Func(Of TEntity, Object)), TEntity()) | Adds or updates entities by key when SaveChanges is called. Equivalent to an "upsert" operation from database terminology. This method can be useful when seeding data using Migrations. |
Show:
