DomainObjects Class Library

Query Methods

The methods of the Query class are listed below. For a complete list of Query class members, see the Query Members topic.

Public Static Methods

FindObjectByPrimaryKeyOverloaded. Retrieves a persistable object by its primary key.
GetCountOverloaded. Returns the total number of rows matching the given criteria, including duplicates and null values. Translates to a
COUNT(*)
query in SQL.

Public Instance Methods

Accept Accepts the specified visitor.
AddPrefetch Specifies how deep in the object graph this query will retrieve objects related to the target class. Multiple prefetches may be added to a single query. By retrieving all objects specified by relatedClassToPrefetch via a single SELECT statement to the database, prefetching avoids lazy loads of related objects and thus improves performance.
AddSelectField Adds a field whose value will be returned by a DataSet. Only add select fields if you are retrieving values in a DataSet via a call to FindDataSet.
AddSelectFields Adds to the set of fields whose values will be returned by a DataSet. Only add select fields if you are retrieving values in a DataSet via a call to FindDataSet.
BuildObjectGraphQuery 
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetClassesToRetrieve Builds the complete set of Classes being retrieved by this query.
GetFullTableName Get the fully qualified name of the table to which this object maps.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetImmediateChildExpressions Gets the child object model expressions that are directly contained by this expression.
GetInsertableFields Get the set of insertable Fields to which this object, and any of its sub-types, maps. This is the set of ColumnFields that are populated by the middle tier when a row is inserted into the database.
GetNaturalIdentifier Get a string that identifies this object to a person familiar with the object model. Used when an instance of this field is part of a logging or assertion statement.
GetRootTableMappedObject Returns the root table mapped object in this query path; i.e., the starting point of this join path.
GetSelectableFields Get the set of selectable Fields to which this object, and any of its sub-types, maps.
GetType (inherited from Object)Gets the Type of the current instance.
GetUpdatableFields Get the set of updatable ColumnFields to which this object, and any of its sub-types, maps. This list would exclude, for example, any primary key columns.
HasAnyComputedPrimaryKeyColumns Determines whether this table mapped object has any computed primary key columns.
IsCount Determines whether this instance represents a SQL COUNT statement.
ToString (inherited from Object)Returns a String that represents the current Object.

See Also

Query Class | DomainObjects.Facade.Command Namespace