public int Insert(QueryBase query) { using (var conn = new DataSourceBase(_dbconn, query.Command, query.Parameters)) { return(conn.ExecuteInsert()); } }
public void Delete(QueryBase query) { using (var conn = new DataSourceBase(_dbconn, query.Command, query.Parameters)) { conn.ExecuteNonQuery(); } }
public DataTable Select(QueryBase query) { using (var conn = new DataSourceBase(_dbconn, query.Command, query.Parameters)) { return(conn.ExecuteCommand()); } }