.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPObjectSource Members

Enables binding reports to XPO persistent class' data.

Constructors

Name Description
XPObjectSource() Initializes a new instance of the XPObjectSource class with the default settings.
XPObjectSource(IContainer) Initializes a new instance of the XPObjectSource class with a specified container.

Properties

Name Description
Base64 For internal use.
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
ConnectionString Specifies a connection string used to connect to a database.
ConnectionStringName Specifies the name of the connection string used to connect to a database. The specified name should exist in the application configuration file.
ConnectionStringsProvider For internal use.
Container Gets the IContainer that contains the Component. Inherited from Component.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Dictionary For internal use.
EntityType Specifies metadata information for an XPO class mapped to the required data.
EntityTypeString Specifies the fully qualified name of an XPO class mapped to the required data.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
Filter Specifies the criteria used to filter data.
FilterString Specifies the string criteria used to filter data.
GroupFilter Specifies the CriteriaOperator containing grouped/aggregated columns.
GroupFilterString Specifies the string criteria containing grouped/aggregated columns.
Parameters Gets a list of parameters you can use in CriteriaOperators passed to the XPObjectSource.Filter, XPObjectSource.GroupFilter, XPObjectSource.Properties and XPObjectSource.Sorting properties.
Properties Specifies the list of persistent class' properties loaded by XPObjectSource. When the list is not emply, only the listed properties are loaded. Otherwise, XPObjectSource loads all properties of the class specified by XPObjectSource.EntityType.
Site Gets or sets the ISite of the Component. Inherited from Component.
SkipReturnedRecords Specifies the number of records to exclude when loading data.
Sorting Specifies the data sorting within the XPObjectSource.
Tag Specifies the data associated with the XPObjectSource object. This data is passed to the XPObjectSource.ResolveSession and XPObjectSource.DismissSession events.
TopReturnedRecords Specifies the maximum number of retrieved records.

Methods

Name Description
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose() Releases all resources used by the Component. Inherited from Component.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Fill() Retrieves the data from the data source and populates the internal objects collection.
Fill(IEnumerable<IParameter>) Retrieves the data from the data source and populates the internal objects collection using the specified parameters.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetType() Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
LoadFromXml(XElement) For internal use.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
PopulateProperties() Clears the XPObjectSource.Properties collection and populates it with properties of the persistent class specified by the XPObjectSource.EntityType property.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset(Boolean) Triggers the IBindingList.ListChanged event.
SaveToXml() For internal use.
SetEntityType(Type) Gets the XPClassInfo object corresponding to the specified type and assigns this object to the XPObjectSource.EntityType property.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.

Events

Name Description
AfterFill For internal use.
BeforeFill For internal use.
DismissSession Occurs when the XPObjectSource no longer needs the Session it used to retrieve objects from the data store.
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
ResolveSession Occurs when the XPObjectSource needs a Session to retrieve objects from the data store.
See Also