Export (0) Print
Expand All

IDbSetExtensions Methods

Entity Framework 5.0

  Name Description
Public method Static member AddOrUpdate<TEntity>(IDbSet<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.
Public method Static member AddOrUpdate<TEntity>(IDbSet<TEntity>, Expression<Func<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.
Top
Show:
© 2014 Microsoft