IQuerySurface

edit

IQuerySurface

Summary== The IQuerySurface is essentially a "contract" for querying between your objects and your database and can be thought of as (basically) the DataContext in Linq to Sql. ==The Interface

It's pretty basic, but the interface is this:public interface IQuerySurface { IDataProvider Provider { get; } Select Select { get; } Insert Insert { get; } SqlQuery Avg(Expression> column); SqlQuery Count(Expression> column); SqlQuery Max(Expression> column); SqlQuery Min(Expression> column); SqlQuery Variance(Expression> column); SqlQuery StandardDeviation(Expression> column); SqlQuery Sum(Expression> column); SqlQuery Delete(Expression> column) where T : new(); Query GetQuery(); ITable FindTable(string tableName); Update Update() where T : new(); } The that you see here is SubSonic's SimpleQuery Tool.