EFObjectSpace Methods

Name Description
ApplyCriteria(Object, CriteriaOperator)

Filters the specified collection according to the specified criteria on the server side.

ApplyFilter(Object, CriteriaOperator)

Filters a particular collection on the client side.

CanApplyCriteria(Type)

Indicates whether collections of a particular type can be filtered on the server side.

CanApplyFilter(Object)

Indicates whether a particular collection can be filtered on the client side.

Contains(Object)

Indicates whether a specified object belongs to the current Object Space.

CreateInstantFeedbackCollection(Type, CriteriaOperator)
CreateNestedObjectSpace()

Creates a nested Object Space.

CreateParseCriteriaScope()
CreateServerCollection(Type, CriteriaOperator)

Creates and initializes a new instance of the EFServerCollection class with criteria-specific options.

Dispose()

Releases all resources used by an EFObjectSpace object.

EnableObjectDeletionOnRemove(Object, Boolean)

Enables/disables the deletion of persistent objects from the data source when they are removed from the specified collection.

Evaluate(Type, CriteriaOperator, CriteriaOperator)

Evaluates the specified criteria for business objects of the given type.

FindObject(Type, CriteriaOperator, Boolean)

Searches for the first object which matches the specified criteria.

GetCollectionObjectType(Object)
GetCollectionSorting(Object)

Returns the sort settings for a particular collection.

GetCriteria(Object)

Returns the criteria used to filter a particular collection on the server side.

GetDefaultDisplayableMembers(ITypeInfo)

Returns the list of default displayable members declared in the specified type.

GetDisplayableProperties(Object)

Gets the properties considered visible by the specified collection.

GetEvaluatorContextDescriptor(Type)

Creates an instance of the EvaluatorContextDescriptor that is used to supply metadata on the specified type to the ExpressionEvaluator objects.

GetFilter(Object)

Returns null (Nothing in VB).

GetKeyPropertyName(Type)
GetListServer(Object)

For internal use.

GetObject(Object)

Retrieves an object from another Object Space to the current Object Space.

GetObjectByKey(Type, Object)

Returns the persistent object that has the specified value for its key property.

GetObjectsQuery<T>(Boolean)

Gets a queryable data structure that provides functionality to evaluate queries against a specific business object type.

GetObjectsToDelete(Boolean)

Returns a collection of persistent objects that are marked as deleted in the current object context.

GetObjectsToSave(Boolean)

Returns a collection of persistent objects that are added, deleted or modified in the current object context.

GetReferenceMemberNames(ITypeInfo, IList<String>)

Returns the list of reference members' names declared in the specified type.

GetReferenceMemberNames(ITypeInfo, String)

Returns the list of reference members' names declared in the specified type.

GetSqlException(Exception)

Converts the passed Exception to an SqlException that is thrown when SQL Server returns a warning or error.

GetTopReturnedObjectsCount(Object)

Returns the maximum number of objects to be retrieved by the specified collection from a data store.

IsCollectionLoaded(Object)

Indicates whether a particular collection is loaded with objects from the database.

IsDeletedObject(Object)

Indicates whether the specified persistent object is deleted from the database.

IsDeletionDeferredType(Type)

Returns a value that indicates if deferred deletion is enabled for persistent objects of a given type.

IsDisposedObject(Object)

Determines whether an object has been disposed of.

IsNewObject(Object)

Indicates whether a specified object has been created but has not been saved to the database.

IsObjectDeletionOnRemoveEnabled(Object)

Indicates whether the deletion of persistent objects from the data source when they are removed from the specified collection is enabled.

IsObjectToDelete(Object)

Indicates whether the specified object has been deleted but not committed in the current object context.

IsObjectToSave(Object)

Indicates whether the specified object has been added, deleted or modified, but not committed in the current object context.

ReloadCollection(Object)

Clears the specified collection.

ReloadObject(Object)

Updates the specified object in the current Object Space's EFObjectSpace.ObjectContext with data from the data source.

RemoveFromModifiedObjects(Object)

Removes the specified object from the object context and then attaches it again, to remove all the tracked changes that have not been committed.

SetCollectionSorting(Object, IList<SortProperty>)

Applies the specified sorting to a given collection.

SetDisplayableProperties(Object, String)

Sets the properties to be visible by the specified collection.

SetPrefetchPropertyNames(Object, String[])
SetTopReturnedObjectsCount(Object, Int32)

Sets the maximum number of objects that can be retrieved from the specified collection in a data store.