Uses @@identity to get the Id value.

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

Syntax

Visual Basic (Declaration)
Public Overrides Function GetIdentitySelectString ( _
	identityColumn As String, _
	tableName As String _
) As String
C#
public override string GetIdentitySelectString(
	string identityColumn,
	string tableName
)
Visual C++
public:
virtual String^ GetIdentitySelectString(
	String^ identityColumn, 
	String^ tableName
) override
JavaScript
function getIdentitySelectString(identityColumn, tableName);

Parameters

identityColumn
Type: System..::.String
tableName
Type: System..::.String

Remarks

There is a well known problem with @@identity and triggers that insert into rows into other tables that also use an identity column. The only way I know of to get around this problem is to upgrade your database server to Ms Sql 2000.

See Also