• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IDataContext

Namespace: DotNetNuke.Data
Assembly: DotNetNuke.dll
Syntax
public interface IDataContext

Methods

| Improve this Doc View Source

BeginTransaction()

Declaration
void BeginTransaction()
| Improve this Doc View Source

Commit()

Declaration
void Commit()
| 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
Name Description
T
| 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 Description
T
Type Parameters
Name Description
T
| 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 Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

GetRepository<T>()

Declaration
IRepository<T> GetRepository<T>()
    where T : class
Returns
Type Description
IRepository<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

RollbackTransaction()

Declaration
void RollbackTransaction()

Extension Methods

FluentMapperExtensions.AddFluentMapper<TModel>(IDataContext)
JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS