Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbSetMigrationsExtensions Class

Entity Framework 6.0
 

A set of extension methods for IDbSet<TEntity>

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

System::Object
  System.Data.Entity.Migrations::DbSetMigrationsExtensions

[ExtensionAttribute]
public ref class DbSetMigrationsExtensions abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddOrUpdate<TEntity>(IDbSet<TEntity>^, array<TEntity>^)

Adds or updates entities by key when SaveChanges is called. Equivalent to an "upsert" operation from database terminology. This method can useful when seeding data using Migrations.

System_CAPS_pubmethodSystem_CAPS_staticAddOrUpdate<TEntity>(IDbSet<TEntity>^, Expression<Func<TEntity, Object^>^>^, array<TEntity>^)

Adds or updates entities by a custom identification expression when SaveChanges is called. Equivalent to an "upsert" operation from database terminology. This method can useful when seeding data using Migrations.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: