Show / Hide Table of Contents

Interface IDataContext

Inherited Members
IDisposable.Dispose()
Namespace: DotNetNuke.Data
Assembly: DotNetNuke.dll
Syntax
public interface IDataContext : IDisposable

Methods

BeginTransaction()

Declaration
void BeginTransaction()

Commit()

Declaration
void Commit()

Execute(CommandType, string, params object[])

Declaration
void Execute(CommandType type, string sql, params object[] args)
Parameters
Type Name Description
CommandType type
string sql
object[] args

ExecuteQuery<T>(CommandType, string, params object[])

Declaration
IEnumerable<T> ExecuteQuery<T>(CommandType type, string sql, params object[] args)
Parameters
Type Name Description
CommandType type
string sql
object[] args
Returns
Type Description
IEnumerable<T>
Type Parameters
Name Description
T

ExecuteScalar<T>(CommandType, string, params object[])

Declaration
T ExecuteScalar<T>(CommandType type, string sql, params object[] args)
Parameters
Type Name Description
CommandType type
string sql
object[] args
Returns
Type Description
T
Type Parameters
Name Description
T

ExecuteSingleOrDefault<T>(CommandType, string, params object[])

Declaration
T ExecuteSingleOrDefault<T>(CommandType type, string sql, params object[] args)
Parameters
Type Name Description
CommandType type
string sql
object[] args
Returns
Type Description
T
Type Parameters
Name Description
T

GetRepository<T>()

Declaration
IRepository<T> GetRepository<T>() where T : class
Returns
Type Description
IRepository<T>
Type Parameters
Name Description
T

RollbackTransaction()

Declaration
void RollbackTransaction()

Extension Methods

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