Property | Type | Description | |
---|---|---|---|
CurrentVersion | int |
Method | Description | |
---|---|---|
CreateCommand ( IDbConnection conn, IDbTransaction tx, string sql, object args = null ) : IDbCommand |
Creates a command on the given connection and sql statement and fills it with the given parameters.
|
|
Login ( string login, string password ) : bool |
Logs in the given user when no HttpContext is available.
|
|
LoginSys ( ) : void |
Logs in the default sys user.
|
|
Logout ( ) : void |
Logs out the current user.
|
|
OpenConnection ( string name = "piranha" ) : IDbConnection |
Gets the database connection from the current config.
|
|
OpenTransaction ( string name = "piranha" ) : IDbTransaction |
Opens a connection and creates a transaction on it.
|
Method | Description | |
---|---|---|
GetConnection ( string name ) : IDbConnection |
Gets a connection from the current provider factory.
|
|
GetFactory ( string name ) : System.Data.Common.DbProviderFactory |
Gets the current provider factory specified in the connection string section.
|
public static CreateCommand ( IDbConnection conn, IDbTransaction tx, string sql, object args = null ) : IDbCommand | ||
conn | IDbConnection | The connection |
tx | IDbTransaction | |
sql | string | The sql statement |
args | object | The parameters |
return | IDbCommand |
public static Login ( string login, string password ) : bool | ||
login | string | Username |
password | string | Password |
return | bool |
public static OpenConnection ( string name = "piranha" ) : IDbConnection | ||
name | string | Optional name of the connection string to use |
return | IDbConnection |
public static OpenTransaction ( string name = "piranha" ) : IDbTransaction | ||
name | string | Optional name of the connection string to use |
return | IDbTransaction |