I'm using adapter mode.
How can i execute a scalar query quickly.
I find the ExecuteScalarQuery(IRetrievalQuery queryToExecute) method,but i don't know how to create the instance of IRetrievalQuery.
public RetrievalQuery(
IDbCommand commandToUse
)
What the IDbCommand is?SqlCommand?OledbComand or else?Can someone give me some example?
Can I do not have to pass a IDbCommand in,just pass a simple sql statement in?
Assume there is a method named GetScalar(string sql),I can execute a scalar by
GetScalar("select column_name from table_name"). Is there a such method in LLBL FrameWork?This I can never consider whath the IDbCommand or IDbConnection is.
Thanks.