Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

DAL 2 - IDataContext Interface

Return to previous page

  • 4/7/2015
  • 3039 Views

Comments

3039 Views

DAL 2 - IDataContext Interface

Last updated long time ago

Comments

Common

(Enter the content of this article below)

Advanced

 
The IDataContext interface describes the contract for the concrete PetaPocoDataContext implementation.

public interface IDataContext : IDisposable

{
void BeginTransaction();

void Commit();

void Execute(CommandType type, string sql, params object[] args);

IEnumerable<T> ExecuteQuery<T>(CommandType type, string sql, params object[] args);

T ExecuteScalar<T>(CommandType type, string sql, params object[] args);

T ExecuteSingleOrDefault<T>(CommandType type, string sql, params object[] args);

IRepository<T> GetRepository<T>() where T : class;

void RollbackTransaction();
}
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out