C# Class JPB.DataAccess.Helper.LocalDb.Scopes.IdentityInsertScope

Defines an Area that allows identity Inserts IDENTITY_INSERT on SQL
Inheritance: IDisposable
Mostrar archivo Open project: JPVenson/DataAccess Class Usage Examples

Private Properties

Property Type Description
IdentityInsertScope System
OnOnIdentityInsertCompleted void

Public Methods

Method Description
Dispose ( ) : void
IdentityInsertScope ( bool rewriteDefaultValues = false ) : System

Creates a new Idenity Scope. Close it with Dispose Must be created inside an TransactionScope it is strongy recommanded to create this class inside an using construct!

Private Methods

Method Description
IdentityInsertScope ( bool rewriteDefaultValues = false, bool nested = false ) : System
OnOnIdentityInsertCompleted ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

IdentityInsertScope() public method

Creates a new Idenity Scope. Close it with Dispose Must be created inside an TransactionScope it is strongy recommanded to create this class inside an using construct!
public IdentityInsertScope ( bool rewriteDefaultValues = false ) : System
rewriteDefaultValues bool Should every DefaultValue still be set to a valid Id
return System