C# Class AllReady.Extensions.ContextExtensions

Mostrar archivo Open project: HTBox/allReady

Public Methods

Method Description
AddOrUpdate ( this ctx, object entity ) : void

Handles correctly attaching an object to the context for cases where it may be new or modified.

Method Details

AddOrUpdate() public static method

Handles correctly attaching an object to the context for cases where it may be new or modified.
public static AddOrUpdate ( this ctx, object entity ) : void
ctx this
entity object
return void