Example #1
0
 protected internal Query(string name, IList <Query.Row> rows, int objectId, Query.Type
                          type)
 {
     _name     = name;
     _rows     = rows;
     _objectId = objectId;
     _type     = type;
     if (type != Query.Type.UNKNOWN)
     {
         short foundType = GetShortValue(GetQueryType(rows), _type.value);
         if (foundType != _type.value)
         {
             throw new InvalidOperationException("Unexpected query type " + foundType);
         }
     }
 }
Example #2
0
 protected internal BaseSelectQuery(string name, IList <Query.Row> rows, int objectId
                                    , Query.Type type) : base(name, rows, objectId, type)
 {
 }