C# Class Oda.Session

A session for Oda.
显示文件 Open project: CorbinDallas/Oda Class Usage Examples

Public Properties

Property Type Description
Account Account
AccountId System.Guid
AnonymousAccount Account
LoggedOn bool
Properties SessionProperties

Public Methods

Method Description
GetProperty ( System.Guid id ) : SessionProperty

Gets a property by the properties id.

GetProperty ( string name ) : SessionProperty

Gets the property by the properties name.

Refresh ( ) : Session

Refreshes this session by reading data from the database.

Session ( System.Guid id ) : System

Initializes a new instance of the Session class.

Private Methods

Method Description
GetSessionIdFromCookie ( ) : System.Guid

Gets the session id from cookie.

Refresh ( SqlConnection cn, SqlTransaction trans ) : Session

Method Details

GetProperty() public method

Gets a property by the properties id.
public GetProperty ( System.Guid id ) : SessionProperty
id System.Guid The _id.
return SessionProperty

GetProperty() public method

Gets the property by the properties name.
public GetProperty ( string name ) : SessionProperty
name string The _name.
return SessionProperty

Refresh() public method

Refreshes this session by reading data from the database.
public Refresh ( ) : Session
return Session

Session() public method

Initializes a new instance of the Session class.
public Session ( System.Guid id ) : System
id System.Guid The _id.
return System

Property Details

Account public_oe property

The Account of this session.
public Account,Oda Account
return Account

AccountId public_oe property

The account Id that this session belongs to.
public Guid,System AccountId
return System.Guid

AnonymousAccount public_oe static_oe property

An anonymous Account.
public static Account,Oda AnonymousAccount
return Account

LoggedOn public_oe property

When the session is logged on then true otherwise false.
public bool LoggedOn
return bool

Properties public_oe property

The SessionProperties associated with this session.
public SessionProperties,Oda Properties
return SessionProperties