[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Collapse]eXpressApp Framework
 [Expand]Fundamentals
 [Expand]Getting Started
 [Expand]Concepts
 [Expand]Design-Time Features
 [Expand]Deployment
 [Expand]Task-Based Help
  Frequently Asked Questions (FAQ)
 [Collapse]API Reference
  [Expand]DevExpress.EasyTest.Framework
  [Collapse]DevExpress.ExpressApp
   [Collapse]BaseObjectSpace Class
     BaseObjectSpace Members
     BaseObjectSpace Constructor
    [Expand]BaseObjectSpace Properties
    [Expand]BaseObjectSpace Events
    [Collapse]BaseObjectSpace Methods
      ApplyCriteria Method
      ApplyFilter Method
      CanApplyCriteria Method
      CanApplyFilter Method
      CanInstantiate Method
      CommitChanges Method
      Contains Method
      ConvertExpressionsStringToExpressionsList Method
      ConvertSortingToString Method
      ConvertStringToSorting Method
     [Expand]CreateCollection Method
     [Expand]CreateDataView Method
      CreateInstantFeedbackCollection Method
      CreateNestedObjectSpace Method
      CreateObject Method
      CreateObject<ObjectType> Method
      CreateParseCriteriaScope Method
      CreateServerCollection Method
     [Expand]Delete Method
      Dispose Method
      EnableObjectDeletionOnRemove Method
      Evaluate Method
     [Expand]FindObject Method
     [Expand]FindObject<ObjectType> Method
      GetAssociatedCollectionCriteria Method
      GetCollectionObjectType Method
      GetCollectionSorting Method
      GetCriteria Method
      GetDisplayableProperties Method
      GetEvaluatorContextDescriptor Method
     [Expand]GetExpressionEvaluator Method
      GetFilter Method
      GetIntermediateObjectReferences Method
      GetKeyPropertyName Method
      GetKeyPropertyType Method
     [Expand]GetKeyValue Method
     [Expand]GetKeyValueAsString Method
      GetListServer Method
      GetObject Method
      GetObject<ObjectType> Method
      GetObjectByHandle Method
      GetObjectByKey Method
      GetObjectByKey<ObjectType> Method
      GetObjectHandle Method
      GetObjectKey Method
     [Expand]GetObjects Method
     [Expand]GetObjects<T> Method
      GetObjectsCount Method
      GetObjectsCriteria Method
      GetObjectsQuery<T> Method
      GetObjectsToDelete Method
      GetObjectsToSave Method
      GetObjectType Method
      GetTopReturnedObjectsCount Method
      IsCollectionLoaded Method
      IsDeletedObject Method
      IsDeletionDeferredType Method
      IsDisposedObject Method
      IsIntermediateObject Method
      IsKnownType Method
      IsNewObject Method
      IsObjectDeletionOnRemoveEnabled Method
     [Expand]IsObjectFitForCriteria Method
      IsObjectToDelete Method
      IsObjectToSave Method
      ObjectKeyValuesEqual Method
      ParseCriteria Method
      Refresh Method
      ReloadCollection Method
      ReloadObject Method
      RemoveFromModifiedObjects Method
      Rollback Method
      SetCollectionSorting Method
      SetDisplayableProperties Method
     [Expand]SetModified Method
      SetPrefetchPropertyNames Method
      SetTopReturnedObjectsCount Method
    CheckCompatibilityType Enumeration
   [Expand]CollectionSource Class
   [Expand]CollectionSourceBase Class
    CollectionSourceDataAccessMode Enumeration
    CollectionSourceMode Enumeration
   [Expand]CollectionSourceModeAttribute Class
   [Expand]CompositeView Class
    ConfirmationResult Enumeration
    ConfirmationType Enumeration
   [Expand]Controller Class
   [Expand]CreateCustomCollectionSourceEventArgs Class
   [Expand]CreateCustomCurrentObjectDetailViewEventArgs Class
   [Expand]CreateCustomLogonParameterStoreEventArgs Class
   [Expand]CreateCustomLogonWindowControllersEventArgs Class
   [Expand]CreateCustomLogonWindowObjectSpaceEventArgs Class
   [Expand]CreateCustomModelCacheManagerEventArgs Class
   [Expand]CreateCustomModelDifferenceStoreEventArgs Class
   [Expand]CreateCustomObjectSpaceProviderEventArgs Class
   [Expand]CreateCustomPropertyCollectionSourceEventArgs Class
   [Expand]CreateCustomTemplateEventArgs Class
   [Expand]CustomCheckCompatibilityEventArgs Class
   [Expand]CustomHasPermissionToEventArgs Class
   [Expand]CustomizeFormattingCultureEventArgs Class
   [Expand]CustomizeLanguageEventArgs Class
   [Expand]CustomizeTemplateEventArgs Class
   [Expand]CustomizeViewShortcutArgs Class
   [Expand]CustomProcessShortcutEventArgs Class
   [Expand]DashboardView Class
   [Expand]DashboardViewCreatedEventArgs Class
   [Expand]DashboardViewCreatingEventArgs Class
    DatabaseUpdateMode Enumeration
   [Expand]DatabaseVersionMismatchEventArgs Class
   [Expand]DefaultListViewOptionsAttribute Class
   [Expand]DetailView Class
   [Expand]DetailViewCreatedEventArgs Class
   [Expand]DetailViewCreatingEventArgs Class
   [Expand]Frame Class
    FrameContext Enumeration
   [Expand]IModelDifference Interface
   [Expand]IModelDifferenceAspect Interface
   [Expand]IModelExtender Interface
    InformationPosition Enumeration
    InformationType Enumeration
   [Expand]IObjectSpace Interface
   [Expand]IObjectSpaceLink Interface
   [Expand]IObjectSpaceProvider Interface
   [Expand]ISettingsProvider Interface
   [Expand]ISupportNewItemRowPosition Interface
   [Expand]ISupportUpdate Interface
   [Expand]IXafEntityObject Interface
   [Expand]LastLogonParametersReadEventArgs Class
   [Expand]LastLogonParametersReadingEventArgs Class
   [Expand]LastLogonParametersWritingEventArgs Class
   [Expand]ListView Class
   [Expand]ListViewCreatedEventArgs Class
   [Expand]ListViewCreatingEventArgs Class
   [Expand]ListViewFindPanelAttribute Class
   [Expand]LoggingOffEventArgs Class
   [Expand]LogonEventArgs Class
   [Expand]LogonFailedEventArgs Class
    LookupEditCollectionSourceMode Enumeration
   [Expand]LookupEditPropertyCollectionSource Class
    MasterDetailMode Enumeration
   [Expand]MessageOptions Class
   [Expand]ModelCacheManager Class
   [Expand]ModelDifferenceStore Class
   [Expand]ModelStoreBase Class
   [Expand]ModuleBase Class
   [Expand]NestedFrame Class
    Nesting Enumeration
    NewItemRowPosition Enumeration
    NewWindowTarget Enumeration
   [Expand]NonPersistentObjectSpace Class
   [Expand]ObjectChangedEventArgs Class
   [Expand]ObjectManipulatingEventArgs Class
   [Expand]ObjectsCountGettingEventArgs Class
   [Expand]ObjectsManipulatingEventArgs Class
   [Expand]ObjectSpaceCreatedEventArgs Class
   [Expand]ObjectView Class
   [Expand]ObjectViewController Class
   [Expand]ObjectViewController<ViewType, ObjectType> Class
   [Expand]ProcessActionContainerEventArgs Class
   [Expand]PropertyCollectionSource Class
    SchemaUpdateMode Enumeration
   [Expand]SecuritySystem Class
    SelectionType Enumeration
   [Expand]ShowViewParameters Class
   [Expand]ShowViewSource Class
   [Expand]ShowViewStrategyBase Class
    TargetWindow Enumeration
   [Expand]TemplateContext Structure
    UIType Enumeration
   [Expand]ValidateObjectEventArgs Class
   [Expand]View Class
   [Expand]ViewController Class
   [Expand]ViewController<ViewType> Class
   [Expand]ViewCreatedEventArgs Class
   [Expand]ViewCreatingEventArgs Class
   [Expand]ViewItemsChangedEventArgs Class
    ViewItemsChangedType Enumeration
   [Expand]ViewShortcut Class
   [Expand]ViewShowingEventArgs Class
   [Expand]ViewShownEventArgs Class
    ViewType Enumeration
   [Expand]WebMessageOptions Class
   [Expand]Window Class
   [Expand]WindowController Class
    WindowType Enumeration
   [Expand]WinMessageOptions Class
    WinMessageType Enumeration
   [Expand]XafApplication Class
   [Expand]XafDataView Class
   [Expand]XafDataViewRecord Class
   [Expand]XafInstantFeedbackRecord Class
  [Expand]DevExpress.ExpressApp.Actions
  [Expand]DevExpress.ExpressApp.AuditTrail
  [Expand]DevExpress.ExpressApp.Chart
  [Expand]DevExpress.ExpressApp.Chart.Web
  [Expand]DevExpress.ExpressApp.Chart.Win
  [Expand]DevExpress.ExpressApp.CloneObject
  [Expand]DevExpress.ExpressApp.ConditionalAppearance
  [Expand]DevExpress.ExpressApp.Dashboards
  [Expand]DevExpress.ExpressApp.Dashboards.Web
  [Expand]DevExpress.ExpressApp.Dashboards.Win
  [Expand]DevExpress.ExpressApp.Data
  [Expand]DevExpress.ExpressApp.DC
  [Expand]DevExpress.ExpressApp.DC.ClassGeneration
  [Expand]DevExpress.ExpressApp.Editors
  [Expand]DevExpress.ExpressApp.EF
  [Expand]DevExpress.ExpressApp.EF.Utils
  [Expand]DevExpress.ExpressApp.FileAttachments.Web
  [Expand]DevExpress.ExpressApp.FileAttachments.Win
  [Expand]DevExpress.ExpressApp.Filtering
  [Expand]DevExpress.ExpressApp.HtmlPropertyEditor.Web
  [Expand]DevExpress.ExpressApp.HtmlPropertyEditor.Win
  [Expand]DevExpress.ExpressApp.Kpi
  [Expand]DevExpress.ExpressApp.Layout
  [Expand]DevExpress.ExpressApp.Maps.Mobile
  [Expand]DevExpress.ExpressApp.Maps.Mobile.Editors
  [Expand]DevExpress.ExpressApp.Maps.Web
  [Expand]DevExpress.ExpressApp.Maps.Web.Helpers
  [Expand]DevExpress.ExpressApp.MiddleTier
  [Expand]DevExpress.ExpressApp.Mobile
  [Expand]DevExpress.ExpressApp.Mobile.Editors
  [Expand]DevExpress.ExpressApp.Mobile.MobileModel
  [Expand]DevExpress.ExpressApp.Mobile.SystemModule
  [Expand]DevExpress.ExpressApp.Mobile.Templates
  [Expand]DevExpress.ExpressApp.Model
  [Expand]DevExpress.ExpressApp.Model.Core
  [Expand]DevExpress.ExpressApp.Model.NodeGenerators
  [Expand]DevExpress.ExpressApp.ModelEditor
  [Expand]DevExpress.ExpressApp.Notifications
  [Expand]DevExpress.ExpressApp.Notifications.Web
  [Expand]DevExpress.ExpressApp.Notifications.Win
  [Expand]DevExpress.ExpressApp.Office.Win
  [Expand]DevExpress.ExpressApp.PivotChart
  [Expand]DevExpress.ExpressApp.PivotChart.Web
  [Expand]DevExpress.ExpressApp.PivotChart.Win
  [Expand]DevExpress.ExpressApp.PivotGrid
  [Expand]DevExpress.ExpressApp.PivotGrid.Web
  [Expand]DevExpress.ExpressApp.PivotGrid.Win
  [Expand]DevExpress.ExpressApp.Reports
  [Expand]DevExpress.ExpressApp.Reports.Web
  [Expand]DevExpress.ExpressApp.Reports.Win
  [Expand]DevExpress.ExpressApp.ReportsV2
  [Expand]DevExpress.ExpressApp.ReportsV2.Mobile
  [Expand]DevExpress.ExpressApp.ReportsV2.Web
  [Expand]DevExpress.ExpressApp.ReportsV2.Win
  [Expand]DevExpress.ExpressApp.Scheduler
  [Expand]DevExpress.ExpressApp.Scheduler.Web
  [Expand]DevExpress.ExpressApp.Scheduler.Win
  [Expand]DevExpress.ExpressApp.ScriptRecorder
  [Expand]DevExpress.ExpressApp.ScriptRecorder.Web
  [Expand]DevExpress.ExpressApp.ScriptRecorder.Win
  [Expand]DevExpress.ExpressApp.Security
  [Expand]DevExpress.ExpressApp.Security.Adapters
  [Expand]DevExpress.ExpressApp.Security.ClientServer.Wcf
  [Expand]DevExpress.ExpressApp.Security.EF.Adapters
  [Expand]DevExpress.ExpressApp.Security.Strategy
  [Expand]DevExpress.ExpressApp.Security.Xpo.Adapters
  [Expand]DevExpress.ExpressApp.StateMachine
  [Expand]DevExpress.ExpressApp.SystemModule
  [Expand]DevExpress.ExpressApp.Templates
  [Expand]DevExpress.ExpressApp.Templates.ActionContainers
  [Expand]DevExpress.ExpressApp.TreeListEditors
  [Expand]DevExpress.ExpressApp.TreeListEditors.Web
  [Expand]DevExpress.ExpressApp.TreeListEditors.Win
  [Expand]DevExpress.ExpressApp.Updating
  [Expand]DevExpress.ExpressApp.Utils
  [Expand]DevExpress.ExpressApp.Validation
  [Expand]DevExpress.ExpressApp.Validation.Web
  [Expand]DevExpress.ExpressApp.Validation.Win
  [Expand]DevExpress.ExpressApp.ViewVariantsModule
  [Expand]DevExpress.ExpressApp.Web
  [Expand]DevExpress.ExpressApp.Web.Controls
  [Expand]DevExpress.ExpressApp.Web.Editors
  [Expand]DevExpress.ExpressApp.Web.Editors.ASPx
  [Expand]DevExpress.ExpressApp.Web.SystemModule
  [Expand]DevExpress.ExpressApp.Web.Templates
  [Expand]DevExpress.ExpressApp.Web.Utils
  [Expand]DevExpress.ExpressApp.Win
  [Expand]DevExpress.ExpressApp.Win.Core
  [Expand]DevExpress.ExpressApp.Win.Editors
  [Expand]DevExpress.ExpressApp.Win.Model
  [Expand]DevExpress.ExpressApp.Win.SystemModule
  [Expand]DevExpress.ExpressApp.Win.Templates
  [Expand]DevExpress.ExpressApp.Win.Templates.Navigation
  [Expand]DevExpress.ExpressApp.Win.Utils
  [Expand]DevExpress.ExpressApp.Workflow
  [Expand]DevExpress.ExpressApp.Workflow.Win
  [Expand]DevExpress.ExpressApp.Xpo
  [Expand]DevExpress.ExpressApp.Xpo.Utils
  [Expand]DevExpress.Persistent.Base
  [Expand]DevExpress.Persistent.Base.General
  [Expand]DevExpress.Persistent.Base.ReportsV2
  [Expand]DevExpress.Persistent.Base.Security
  [Expand]DevExpress.Persistent.BaseImpl
  [Expand]DevExpress.Persistent.BaseImpl.EF
  [Expand]DevExpress.Persistent.BaseImpl.EF.PermissionPolicy
  [Expand]DevExpress.Persistent.BaseImpl.PermissionPolicy
  [Expand]DevExpress.Persistent.Validation
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

BaseObjectSpace Methods

A base class for the classes that implement the IObjectSpace interface.

Expanded Public Methods

Show: Inherited
  Name Description
Public method ApplyCriteria Filters a particular collection on the server side.
Public method ApplyFilter Filters a particular collection on the client side.
Public method CanApplyCriteria Indicates whether collections of a particular type can be filtered on the server side.
Public method CanApplyFilter Indicates whether a particular collection can be filtered on the client side.
Public method CanInstantiate Indicates whether instances of a particular type can be created.
Public method CommitChanges Saves all the changes made to the persistent objects belonging to the current Object Space to the database.
Public method Contains Indicates whether a specified object belongs to the current Object Space.
Public methodStatic member ConvertExpressionsStringToExpressionsList Returns the list of DataViewExpression objects converted from the passed semicolon-separated expressions list.
Public methodStatic member ConvertSortingToString Returns the string representation of a given sort list.
Public methodStatic member ConvertStringToSorting Converts the sorting string into the sorting list.
Public method CreateCollection Overloaded. Creates and initializes a collection of objects of the specified type.
Public method CreateDataView Overloaded. Returns a list of data records retrieved from a database without loading complete business classes (a data view). Values in each data record can be obtained from specific business class properties directly, or be evaluated by the database server using complex expressions.
Public method CreateInstantFeedbackCollection
Public method CreateNestedObjectSpace Creates a nested Object Space.
Public method CreateObject Creates an object of the specified type.
Public method CreateObject<ObjectType> Creates an object of the type designated by the specified generic type parameter.
Public method CreateParseCriteriaScope Used when parsing a CriteriaOperator represented by a string and containing persistent objects.
Public method CreateServerCollection Creates and initializes a new instance of the EFServerCollection or DevExpress.Xpo.XPServerCollectionSource class with criteria-specific options.
Public method Delete Overloaded. Marks the specified persistent object and its aggregated objects as deleted from persistent storage.
Public method Dispose Releases all resources used by an BaseObjectSpace object.
Public method EnableObjectDeletionOnRemove Enables/disables the deletion of persistent objects from the data source when they are removed from the specified collection.
Public method Equals Determines whether the specified System.Object is equal to the current System.Object. (Inherited from System.Object)
Public methodStatic member Equals Determines whether the specified System.Object instances are considered equal. (Inherited from System.Object)
Public method Evaluate Evaluates the specified criteria for business objects of the given type.
Public method FindObject Overloaded. Searches for the first object of the specified type, matching the specified criteria.
Public method FindObject<ObjectType> Overloaded. Searches for the first object of the type designated by the specified generic type parameter, matching the specified criteria.
Public method GetAssociatedCollectionCriteria Returns the criteria applied to a specific object's associated collection property.
Public method GetCollectionObjectType
Public method GetCollectionSorting Returns the sort settings for a particular collection.
Public method GetCriteria Returns the criteria used to filter a particular collection on the server side.
Public method GetDisplayableProperties Gets the properties considered visible by the specified collection.
Public method GetEvaluatorContextDescriptor Creates an instance of the EvaluatorContextDescriptor that is used to supply metadata on the specified type to the ExpressionEvaluator objects.
Public method GetExpressionEvaluator Overloaded. Creates an ExpressionEvaluator object that is used to evaluate whether objects of the specified type satisfy a particular criteria.
Public method GetFilter Returns the criteria used to filter a particular collection on the client side.
Public method GetHashCode Serves as a hash function for a particular type. System.Object.GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from System.Object)
Public method GetIntermediateObjectReferences For internal use.
Public method GetKeyPropertyName Gets the name of the specified type's key property.
Public method GetKeyPropertyType Gets the key property type of the specified business type.
Public method GetKeyValue Overloaded. Returns the key property's value of the specified object.
Public methodStatic member GetKeyValue Overloaded. Returns the key property's value of the specified persistent object.
Public method GetKeyValueAsString Overloaded. Returns the key property's value of the specified object, converted to a string representation.
Public methodStatic member GetKeyValueAsString Overloaded.
Public method GetListServer For internal use.
Public method GetObject Retrieves an object that corresponds to a specific object from another Object Space or to a specific record from a data view created by the IObjectSpace.CreateDataView method.
Public method GetObject<ObjectType> Retrieves an object from another Object Space to the current Object Space. The returned object is cast by the type designated by the specified generic type parameter.
Public method GetObjectByHandle Returns the object with the specified handle.
Public method GetObjectByKey Returns the persistent object that has the specified value for its key property.
Public method GetObjectByKey<ObjectType> Returns a persistent object of the type designated by the specified generic type parameter, with the specified value for its key property.
Public method GetObjectHandle Returns an object's handle.
Public method GetObjectKey Converts the key property value string representation into its actual type.
Public method GetObjects Overloaded. Returns a sorted IList collection of objects of the specified type, retrieved to the current Object Space and filtered according to the specified criteria.
Public method GetObjects<T> Overloaded. Returns an IList collection of objects of the specified type, retrieved to the current Object Space and filtered according to the specified criteria.
Public method GetObjectsCount Returns the number of objects specified.
Public method GetObjectsCriteria Constructs a criteria that can be used to select the specified list of business objects.
Public method GetObjectsQuery<T> Gets a queryable data structure that provides functionality to evaluate queries against a specific business object type.
Public method GetObjectsToDelete Returns a collection of persistent objects that will be deleted when the current transaction is committed, including objects that will be deleted in the parent transaction(s), optionally.
Public method GetObjectsToSave Returns a collection of persistent objects that will be saved when the current transaction is committed, including objects that will be saved in the parent transaction(s), optionally.
Public method GetObjectType Returns the type of the specified business object.
Public method GetTopReturnedObjectsCount Returns the maximum number of objects to be retrieved by the specified collection from a data store.
Public method GetType Gets the System.Type of the current instance. (Inherited from System.Object)
Public method IsCollectionLoaded Indicates whether a particular collection is loaded with objects from the database.
Public method IsDeletedObject Indicates whether the specified persistent object is deleted from the database.
Public method IsDeletionDeferredType Returns a value that indicates if the deferred deletion is enabled for persistent objects of a given type.
Public method IsDisposedObject Determines whether an object has been disposed of.
Public method IsIntermediateObject For internal use.
Public method IsKnownType Returns the boolean value indicating whether or not the specified type is known by the BaseObjectSpace.
Public method IsNewObject Indicates whether a specified object has been created but has not been saved to the database.
Public method IsObjectDeletionOnRemoveEnabled Indicates whether the deletion of persistent objects from the data source when they are removed from the specified collection is enabled.
Public method IsObjectFitForCriteria Overloaded. Specifies whether a particular object satisfies the specified criteria.
Public method IsObjectToDelete Indicates whether the specified object has been deleted but not committed in the current object context or the transaction currently in progress.
Public method IsObjectToSave Indicates whether the specified object has been added, deleted or modified, but not committed in the current object context or the transaction currently in progress.
Public methodStatic member ObjectKeyValuesEqual
Public method ParseCriteria Tries to convert the specified string representation of an expression to its DevExpress.Data.Filtering.CriteriaOperator equivalent.
Public methodStatic member ReferenceEquals Determines whether the specified System.Object instances are the same instance. (Inherited from System.Object)
Public method Refresh Updates the persistent objects belonging to the current Object Space.
Public method ReloadCollection Clears the specified collection.
Public method ReloadObject Updates the specified object in the current Object Space with data from the data source.
Public method RemoveFromModifiedObjects Removes the specified object from the object context or the list of objects to be committed.
Public method Rollback Cancels the changes made to the persistent objects belonging to the current Object Space.
Public method SetCollectionSorting Applies the specified sorting to a given collection.
Public method SetDisplayableProperties Changes the properties considered visible by a particular collection.
Public method SetModified Overloaded. Sets the state of the specified object to be Modified.
Public method SetPrefetchPropertyNames
Public method SetTopReturnedObjectsCount Sets the maximum number of objects that can be retrieved from the specified collection in a data store.
Public method ToString Returns a System.String that represents the current System.Object. (Inherited from System.Object)
Top

Expanded See Also

Is this topic helpful?​​​​​​​