Interface IDataContext
Assembly: DotNetNuke.dll
Syntax
public interface IDataContext
Methods
|
Improve this Doc
View Source
BeginTransaction()
Declaration
|
Improve this Doc
View Source
Commit()
Declaration
|
Improve this Doc
View Source
Execute(CommandType, String, Object[])
Declaration
void Execute(CommandType type, string sql, params object[] args)
Parameters
Type |
Name |
Description |
CommandType |
type |
|
System.String |
sql |
|
System.Object[] |
args |
|
|
Improve this Doc
View Source
ExecuteQuery<T>(CommandType, String, Object[])
Declaration
IEnumerable<T> ExecuteQuery<T>(CommandType type, string sql, params object[] args)
Parameters
Type |
Name |
Description |
CommandType |
type |
|
System.String |
sql |
|
System.Object[] |
args |
|
Returns
Type |
Description |
IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
ExecuteScalar<T>(CommandType, String, Object[])
Declaration
T ExecuteScalar<T>(CommandType type, string sql, params object[] args)
Parameters
Type |
Name |
Description |
CommandType |
type |
|
System.String |
sql |
|
System.Object[] |
args |
|
Returns
Type Parameters
|
Improve this Doc
View Source
ExecuteSingleOrDefault<T>(CommandType, String, Object[])
Declaration
T ExecuteSingleOrDefault<T>(CommandType type, string sql, params object[] args)
Parameters
Type |
Name |
Description |
CommandType |
type |
|
System.String |
sql |
|
System.Object[] |
args |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetRepository<T>()
Declaration
IRepository<T> GetRepository<T>()
where T : class
Returns
Type Parameters
|
Improve this Doc
View Source
RollbackTransaction()
Declaration
void RollbackTransaction()
Extension Methods