DomainObjects Class Library

Field Members

Field overview

Public Static Methods

CreateField Creates a field from the given value.
GetField Retrieves the field with the given key from the AppDomain cache. See a usage example at FieldCaching().

Public Static Operators

Addition OperatorOverloaded. Generates a SQL expression of the form 'field1 + field2'
Subtraction OperatorOverloaded. Generates a SQL expression of the form 'field1 - field2'

Public Instance Properties

FieldDescriptor Gets or sets the field descriptor.
Value Get an object that represents the run time value. Useful for building Criteria.

Public Instance Methods

Accept Accepts the specified visitor.
AddDateOverloaded. Returns a new DateTime based upon adding the specified interval to this date.
AppendSql Appends the SQL.
AsOverloaded. Sets the alias to be used as the expression name.
AverageOverloaded. Returns the average of all values in a group including duplicate values. Translates to a AVG(field) SQL function.
CountOverloaded. Returns the total number of rows from a table, including duplicates, where this field evaluates to a non-null value. Translates to a COUNT(field) SQL function.
DatePart Returns a string representing a datepart of a date.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
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.
GetKey Get a string representation of the hashcode that uniquely identifies this field instance. This field becomes cached in one of two caches when GetKey is called: 1. If the current thread is executing within an HTTP context, i.e., a web application, then the field is stored in the current HttpSessionState. 2. If the current thread is not executing within an HTTP context, then the field is stored in DomainObject's AppDomain cache. This field can then be retrieved later via a call to GetField. You might want to use the field key as the value of a drop down list in a web page and then retrieve the actual field from the cache when the page is posted back to the server. See a usage example at FieldCaching().
GetNaturalIdentifier Get a string that identifies this field to a person familiar with the object model. Used when an instance of this field is part of a logging or assertion statement.
GetParentTableMappedObject The object that contains this field. For example, the class that contains this member field.
GetType (inherited from Object)Gets the Type of the current instance.
Lower Returns the lower case string of this field's values. Translates to a LOWER(field) SQL function.
Max Returns the maximum value of the field. Null values are ignored. Translates to a MAX(field) SQL function.
Min Returns the minimum value of the field. Null values are ignored. Translates to a MIN(field) SQL function.
Replace Replaces all occurrences of substringToFind in the string value of this field with replacementString. Translates to a REPLACE(fieldToSearch, substringToFind, replacementString) SQL function.
ReplaceNull Replaces a NULL value for this field with the specified replacement value.
SumOverloaded. Returns the sum of this field's values. Null values are ignored. Translates to a SUM(field) SQL function.
ToString (inherited from Object)Returns a String that represents the current Object.
Upper Returns the upper case string of this field's values. Translates to a UPPER(field) SQL function.

See Also

Field Class | DomainObjects.Facade.Command.Expression Namespace