Provided we SupportsInsertSelectIdentity, then attch the "select identity" clause to the insert statement.

Namespace: NHibernate.Dialect
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public virtual SqlString AppendIdentitySelectToInsert(
	SqlString insertString
)
Visual Basic
Public Overridable Function AppendIdentitySelectToInsert ( _
	insertString As SqlString _
) As SqlString
Visual C++
public:
virtual SqlString^ AppendIdentitySelectToInsert(
	SqlString^ insertString
)

Parameters

insertString
Type: NHibernate.SqlCommand..::..SqlString
The insert command

Return Value

The insert command with any necessary identity select clause attached. Note, if SupportsInsertSelectIdentity == false then the insert-string should be returned without modification.

See Also