Generate the SQL that pessimistic locks a row by id (and version)
Namespace:
NHibernate.Persister.EntityAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Protected Overrides Function GenerateLockString ( _ sqlString As SqlString, _ forUpdateFragment As String _ ) As SqlString |
C# |
---|
protected override SqlString GenerateLockString( SqlString sqlString, string forUpdateFragment ) |
Visual C++ |
---|
protected: virtual SqlString^ GenerateLockString( SqlString^ sqlString, String^ forUpdateFragment ) override |
JavaScript |
---|
function generateLockString(sqlString, forUpdateFragment); |
Parameters
- sqlString
- Type: NHibernate.SqlCommand..::.SqlString
An existing SqlString to copy for then new SqlString.
- forUpdateFragment
- Type: System..::.String
Return Value
A new SqlString
Remarks
The parameter sqlString does not get modified. It is Cloned to make a new SqlString.
If the parametersqlString is null a new one will be created.