Provides a wrapper around multiple DataProvider instances that are being used together by a single editor.
| C# |
public class DataPlaceDataSource : Component, ISynchronizeInvoke, ISave, ISupportInitialize, IListSource
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| DataPlaceDataSource(SynchronizationClient, DataTable, String, Form) |
Creates a new instance.
| |
| DataPlaceDataSource(SynchronizationClient, DataTable, Form) |
Creates a new instance.
| |
| DataPlaceDataSource(SynchronizationClient, String, Form) |
Creates a new instance.
| |
| DataPlaceDataSource(Database, String, Form) |
Creates a new instance.
| |
| DataPlaceDataSource(Database, DataTable, Form) |
Creates a new instance.
| |
| DataPlaceDataSource(Database, DataTable, String, Form) |
Creates a new instance.
| |
| DataPlaceDataSource()()() |
Creates a new instance, for use with ISupportInitialize on a designer.
| |
| AttachDataSource()()() |
Prepares the data source by ensuring data is refreshed or in the process of refreshing,
and initializing data views.
| |
| BeginGetRelationData(DataPlace..::.DPColumnRow, AsyncCallback, Object) |
Gets relation data asynchronously.
| |
| BeginGetSharedDataProvider(String, AsyncCallback, Object) |
Gets a shared data provider asynchronously.
| |
| BeginInit()()() |
Called at the beginning of initialization.
| |
| BeginInvoke(Delegate, array<Object>[]()[]) |
Begins invocation of a method on the appropriate thread.
| |
| CanRaiseEvents |
Gets a value indicating whether the component can raise an event.
(Inherited from Component.) | |
| ClearSearch()()() |
Resets the search by setting the search-related parameters to Value.
| |
| ColumnHasChanges(DataRow, DataColumn) |
Determines whether a column value has changed.
| |
| Container |
Gets the IContainer that contains the Component.
(Inherited from Component.) | |
| ContainsListCollection |
Whether this object contains a list.
| |
| CountRefreshingProviders()()() |
Determines the number of data providers that are refreshing or have a pending refresh operation.
| |
| 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.) | |
| Database |
Gets the target database.
| |
| DataProvider_DataRefreshed(Object, EventArgs) |
Called when a data provider has refreshed.
| |
| DataSourceReady |
Occurs when the data source is refreshed and ready for use.
| |
| DesignMode |
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.) | |
| Dispose()()() |
Disposes of the object.
| |
| Dispose(Boolean) |
Disposes of the object.
(Overrides Component.Dispose(Boolean).) | |
| Disposed |
Occurs when the component is disposed by a call to the Dispose()()() method.
(Inherited from Component.) | |
| Disposing |
Occurs when the object is being disposed.
| |
| EndEditRequested |
Occurs when the editor should end all edits on data to allow for a save or change detection to occur.
| |
| EndGetRelationData(IAsyncResult) |
Ends the asynchronous operation of getting relation data.
| |
| EndGetSharedDataProvider(IAsyncResult) |
Ends the asynchronous process of getting a shared data provider.
| |
| EndInit()()() |
Called at the end of initialization.
| |
| EndInvoke(IAsyncResult) |
Gets the return value of an asynchronous operation.
| |
| Equals(Object) | (Inherited from Object.) | |
| Events |
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.) | |
| Finalize()()() |
Finalizes the object.
(Overrides Component.Finalize()()().) | |
| GetCrossRelationInfos(String) |
Gets a collection of objects containing information about the cross-relations associated with a table.
| |
| GetDataProvider(ITableAdapter, String) |
Creates a new data provider.
| |
| GetDataProvider(ITableAdapter, String, Boolean) |
Creates a new data provider.
| |
| GetDPColumnRow(String, String) |
Gets the DPColumn row that defines a user column.
| |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLifetimeService()()() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetList()()() |
Gets the PrimaryTableDataView as the list source.
| |
| GetProvidersWithChanges()()() |
Builds a list of data providers with changes, sorted by foreign key, top down.
| |
| GetRelationData(String, String) |
Gets a table view containing related rows from a parent table, including only the rows
satisfying the user filter.
| |
| GetRelationData(DataPlace..::.DPColumnRow) |
Gets a table view containing related rows from a parent table, including only the rows
satisfying the user filter.
| |
| GetRelationData(DataPlace..::.DPColumnRow, Boolean) |
Gets a table view containing related rows from a parent table, including only the rows
satisfying the user filter.
| |
| GetRowDescription(Database, DataRow) |
Gets the description of a row, or an empty string if no column is defined as the description column.
| |
| GetService(Type) | (Inherited from Component.) | |
| GetSharedDataProvider(String) |
Gets a shared data provider, creating a new one if needed.
| |
| GetSharedDataProvider(String, Boolean) |
Gets a shared data provider, optionally creating a new one if needed.
| |
| GetSharedDataProvider(String, Boolean, SavedSearch) |
Gets a shared data provider, optionally creating a new one if needed, and applying a SavedSearch.
| |
| GetSharedTableColumnsView(String) |
Gets a shared data view containing DPColumn rows that represent columns in a given table.
| |
| GetTableName(DataTable) |
Gets the name of a table, stripping the "Primary" suffix if it's the top-level table.
| |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| HasRefreshingProvider()()() |
Determines whether any of the data providers is refreshing or has a pending refresh operation.
| |
| HasRelationData(DataPlace..::.DPColumnRow) |
Determines whether a DPColumn row represents a PK/FK or lookup column.
| |
| Initialize()()() |
Initializes the object.
| |
| InitializeFailed |
Occurs when initialization has failed.
| |
| InitializeLifetimeService()()() |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| Invoke(Delegate, array<Object>[]()[]) |
Invokes a method on the appropriate thread.
| |
| InvokeRequired |
Gets whether the caller should use Invoke(Delegate, array<Object>[]()[]) or BeginInvoke(Delegate, array<Object>[]()[]) to call methods
that should be on the same thread as the SyncObject control.
| |
| IsDataSourceReady |
Gets whether the data source is refreshed and ready for use.
| |
| IsDisposed |
True if this object has been disposed.
| |
| IsParent(DataProvider, DataProvider) |
Determines whether a data provider is a parent of another.
| |
| MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OnDataSourceReady(EventArgs) |
Raises the DataSourceReady event.
| |
| OnDisposing(EventArgs) |
Raises the Disposing event.
| |
| OnEndEditRequested(EventArgs) |
Raises the EndEditRequested event.
| |
| OnInitializeFailed(ExceptionEventArgs) |
Raises the InitializeFailed event.
| |
| OnRefreshed(EventArgs) |
Raises the Refreshed event.
| |
| OnRefreshFailed(ExceptionEventArgs) |
Raises the RefreshFailed event.
| |
| OnRefreshing(CancelEventArgs<(Of <(DataProvider>)>)) |
Raises the Refreshing event.
| |
| OnRefreshPending(EventArgs) |
Raises the RefreshPending event.
| |
| OnTableAdapterCreated(EventArgs<(Of <(ITableAdapter>)>)) |
Raises the TableAdapterCreated event.
| |
| PrimaryTable |
Gets the primary table.
| |
| PrimaryTableColumnsView |
Gets a view containing only the DPColumn rows for the table being edited, sorted by sort key.
| |
| PrimaryTableDataView |
Gets a view of the primary table.
| |
| PrimaryTableExtensions |
Gets an object containing the table's extended properties.
| |
| PrimaryTableName |
Gets or sets the name of the primary table.
| |
| PrimaryTableRow |
Gets the DPTableRow that defines the primary table.
| |
| ProcessInitialization()()() |
Performs initialization tasks.
| |
| Provider |
Gets the data provider for the PrimaryTable.
| |
| Provider_DataChangeNotification(Object, CancelEventArgs) |
Called when a data provider change notification has occurred.
| |
| Provider_DataRefreshed(Object, EventArgs) |
Called when a data provider has refreshed.
| |
| Provider_DataRefreshFailed(Object, ExceptionEventArgs) |
Called when a data provider refresh has failed.
| |
| Provider_DataRefreshing(Object, CancelEventArgs) |
Called when a data provider started refreshing.
| |
| RefreshData()()() |
Refreshes data, after prompting the user to save changes if there are any.
| |
| RefreshData(Boolean) |
Refreshes data, optionally prompting the user to save changes if there are any.
| |
| Refreshed |
Occurs when the data source has refreshed data.
| |
| RefreshFailed |
Occurs when a refresh has failed.
| |
| Refreshing |
Occurs when the data source is refreshing data.
| |
| RefreshPending |
Occurs when there is a pending data refresh.
| |
| RefreshProviderAndParentDependancies(DataProvider) |
Refreshes a provider and all its parent providers.
| |
| RefreshProvidersOnCreate |
Gets or sets whether to immediately refresh data when a data provider is created.
| |
| RowHasChanges(DataRow, Boolean) |
Determines whether a row has changes.
| |
| RwLock |
Gets an object used to synchronize access to the SharedProviders.
| |
| Save(Boolean) |
Saves changes.
| |
| SaveAndRefreshData()()() |
Saves changes and refreshes data, after prompting the user to confirm.
| |
| SavedSearch |
Gets or sets the saved search that will be applied.
| |
| Search(String, SearchList) |
Ensures a Guid list parameter has a given value.
| |
| Search(String, Object) |
Ensures a parameter of the SELECT command is set to a given value, used to prepare a search/filter.
| |
| SearchText(String, Boolean) |
Sets the search/filter text.
| |
| SearchText(String) |
Sets the search/filter text.
| |
| SetPrimaryTable(DataTable) |
Sets the primary table.
| |
| SharedProviders |
Gets a collection of data providers that can be reused.
| |
| SharedRelationViews |
Gets a collection of relation views that can be reused.
| |
| ShowPermissionsEditor(String, Guid) |
Shows the permissions editor dialog.
| |
| Site | (Inherited from Component.) | |
| SyncManager |
Gets or sets an object that manages synchronization.
When set at design time, the Database property will be derived from this value.
| |
| SyncObject |
Gets the control used to ensure methods are called on the currect thread.
| |
| TableAdapterCreated |
Occurs when a table adapter is created.
| |
| TableDefinitions |
Gets a collection containing information about the structures of all associated tables.
| |
| TableHasChanges(DataTable, Boolean) |
Determines whether a table has changes.
| |
| ToString()()() |
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.) | |
| UndoChanges()()() |
Discards changes and refreshes data after prompting the user to confirm, if there are changes.
| |
| UnwrapValue(Object) |
Converts the wrapped value of a column to its raw value.
| |
| WaitOnAllRefreshingProviders()()() |
Waits for all data providers to finish any pending refreshes.
| |
| WrapValue(DataRow, String) |
Converts the raw value of a column to a type wrapper that can be used to manipulate the value.
| |
| WrapValue(DataRow, DataPlace..::.DPColumnRow) |
Converts the raw value of a column to a wrapper that can be used to manipulate the value.
|
| Object | |||
| MarshalByRefObject | |||
| Component | |||
| DataPlaceDataSource | |||