public virtual sysdiagramsRow[] GetAsArray(string whereSql, string orderBySql, int startIndex, int length, ref int totalRecordCount) { using (IDataReader reader = _db.ExecuteReader(CreateGetCommand(whereSql, orderBySql))) { return(MapRecords(reader, startIndex, length, ref totalRecordCount)); } }