Gets if the ISession is connected.
Namespace: NHibernate.ImplAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public override bool IsConnected { get; } |
Visual Basic |
---|
Public Overrides ReadOnly Property IsConnected As Boolean Get |
Visual C++ |
---|
public: virtual property bool IsConnected { bool get () override; } |
Field Value
trueTruetruetrue (True in Visual Basic) if the ISession is connected.Implements
ISessionImplementor..::..IsConnectedISession..::..IsConnected
ISessionImplementor..::..IsConnected
Remarks
An ISession is considered connected if there is an IDbConnection (regardless
of its state) or if it the field connect is true. Meaning that it will connect
at the next operation that requires a connection.