Get the generated identifier when using identity columns
Namespace: NHibernate.IdAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static Object GetGeneratedIdentity( IDataReader rs, IType type, ISessionImplementor session ) |
Visual Basic |
---|
Public Shared Function GetGeneratedIdentity ( _ rs As IDataReader, _ type As IType, _ session As ISessionImplementor _ ) As Object |
Visual C++ |
---|
public: static Object^ GetGeneratedIdentity( IDataReader^ rs, IType^ type, ISessionImplementor^ session ) |
Parameters
- rs
- Type: System.Data..::..IDataReader
The IDataReader to read the identifier value from.
- type
- Type: NHibernate.Type..::..IType
The IIdentifierType the value should be converted to.
- session
- Type: NHibernate.Engine..::..ISessionImplementor
The ISessionImplementor the value is retrieved in.