The IdentityGenerator for autoincrement/identity key generation.
Namespace:
NHibernate.IdAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Generate ( _ s As ISessionImplementor, _ obj As Object _ ) As Object |
C# |
---|
public Object Generate( ISessionImplementor s, Object obj ) |
Visual C++ |
---|
public: virtual Object^ Generate( ISessionImplementor^ s, Object^ obj ) sealed |
JavaScript |
---|
function generate(s, obj); |
Parameters
- s
- Type: NHibernate.Engine..::.ISessionImplementor
The ISessionImplementor this id is being generated in.
- obj
- Type: System..::.Object
The entity the id is being generated for.