C# Class IdeaBlade.Windows.ObjectDataSource

Inheritance: System.Windows.Controls.Control
Datei anzeigen Open project: IdeaBlade/DevForce.Utilities

Public Properties

Property Type Description
AutoLoadProperty System.Windows.DependencyProperty
DataProperty System.Windows.DependencyProperty
DataViewProperty System.Windows.DependencyProperty
EntityManagerProperty System.Windows.DependencyProperty
HasChangesProperty System.Windows.DependencyProperty
IsBusyProperty System.Windows.DependencyProperty
IsLoadingDataProperty System.Windows.DependencyProperty
IsSavingChangesProperty System.Windows.DependencyProperty
LoadSizeProperty System.Windows.DependencyProperty
PageSizeProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
ApplyState void
AutoLoadChanged void
DataViewChanged void
EntityManagerChanged void
FilterDescriptors_CollectionChanged void
FilterDescriptors_ItemChanged void
GetBasicFilter Predicate
GetFilteredQuery EntityQuery
GetQuery void
GetQueryFilter IPredicateDescription
GroupDescriptors_CollectionChanged void
GroupDescriptors_ItemChanged void
LoadCore void
LoadSizeChanged void
LoadView void
ObjectDataSource_EntityChanged void
ObjectDataSource_Loaded void
PageSizeChanged void
RefreshViewAfterFilterChange void
RefreshViewAfterGroupChange void
RefreshViewAfterSaveOrReject void
RefreshViewAfterSortChange void
SortDescriptors_CollectionChanged void
SortDescriptors_ItemChanged void
pcv_PageChanged void
pcv_PageChanging void

Public Methods

Method Description
Load ( ) : void

Call to load or refresh data when AutoLoad is not on.

Load ( IEntityQuery query ) : void

Load data, passing the source query.

ObjectDataSource ( ) : IdeaBlade.Core

Creates an instance of this type.

OnApplyTemplate ( ) : void

Applies visual state changes for templating.

RejectChanges ( ) : void

Rejects any changes made to data in the collection.

Note that any changes in the EntityManager will be rolled back, so use caution if a new EntityManager was not constructed for this control.

SaveChanges ( ) : void

Saves any data changes to the backend datasource.

An asynchronous SaveChanges call is made on the EntityManager. Note that any changes in the EntityManager will be saved, so use caution if a new EntityManager was not constructed for this control. You can use the EntityManager to set up event handlers.

SaveChanges ( Action callback ) : void

Saves any changes made to the backend datasource.

An asynchronous SaveChanges call is made on the EntityManager. Specify the callback to be called when the save completes. Note that any changes in the EntityManager will be saved, so use caution if a new EntityManager was not constructed for this control. You can use the EntityManager to set up event handlers.

SaveChanges ( SaveOptions saveOptions, Action callback ) : void

Saves the specified changes to the backend datasource.

An asynchronous SaveChanges call is made on the EntityManager. Specifiy the entities to be saved, and the SaveOptions in effect. Specify the callback to be called when the save completes.

Private Methods

Method Description
ApplyState ( bool useTransitions ) : void
AutoLoadChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
DataViewChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
EntityManagerChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
FilterDescriptors_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
FilterDescriptors_ItemChanged ( object sender, ItemChangedEventArgs e ) : void
GetBasicFilter ( ) : Predicate
GetFilteredQuery ( ) : EntityQuery
GetQuery ( ) : void
GetQueryFilter ( ) : IPredicateDescription
GroupDescriptors_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
GroupDescriptors_ItemChanged ( object sender, ItemChangedEventArgs e ) : void
LoadCore ( ) : void
LoadSizeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
LoadView ( ) : void
ObjectDataSource_EntityChanged ( object sender, EntityChangedEventArgs e ) : void
ObjectDataSource_Loaded ( object sender, RoutedEventArgs e ) : void
PageSizeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RefreshViewAfterFilterChange ( ) : void
RefreshViewAfterGroupChange ( ) : void
RefreshViewAfterSaveOrReject ( ) : void
RefreshViewAfterSortChange ( ) : void
SortDescriptors_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
SortDescriptors_ItemChanged ( object sender, ItemChangedEventArgs e ) : void
pcv_PageChanged ( object sender, EventArgs e ) : void
pcv_PageChanging ( object sender, PageChangingEventArgs e ) : void

Method Details

Load() public method

Call to load or refresh data when AutoLoad is not on.
public Load ( ) : void
return void

Load() public method

Load data, passing the source query.
public Load ( IEntityQuery query ) : void
query IEntityQuery
return void

ObjectDataSource() public method

Creates an instance of this type.
public ObjectDataSource ( ) : IdeaBlade.Core
return IdeaBlade.Core

OnApplyTemplate() public method

Applies visual state changes for templating.
public OnApplyTemplate ( ) : void
return void

RejectChanges() public method

Rejects any changes made to data in the collection.
Note that any changes in the EntityManager will be rolled back, so use caution if a new EntityManager was not constructed for this control.
public RejectChanges ( ) : void
return void

SaveChanges() public method

Saves any data changes to the backend datasource.
An asynchronous SaveChanges call is made on the EntityManager. Note that any changes in the EntityManager will be saved, so use caution if a new EntityManager was not constructed for this control. You can use the EntityManager to set up event handlers.
public SaveChanges ( ) : void
return void

SaveChanges() public method

Saves any changes made to the backend datasource.
An asynchronous SaveChanges call is made on the EntityManager. Specify the callback to be called when the save completes. Note that any changes in the EntityManager will be saved, so use caution if a new EntityManager was not constructed for this control. You can use the EntityManager to set up event handlers.
public SaveChanges ( Action callback ) : void
callback Action
return void

SaveChanges() public method

Saves the specified changes to the backend datasource.
An asynchronous SaveChanges call is made on the EntityManager. Specifiy the entities to be saved, and the SaveOptions in effect. Specify the callback to be called when the save completes.
public SaveChanges ( SaveOptions saveOptions, Action callback ) : void
saveOptions SaveOptions
callback Action
return void

Property Details

AutoLoadProperty public_oe static_oe property

See AutoLoad.
public static DependencyProperty,System.Windows AutoLoadProperty
return System.Windows.DependencyProperty

DataProperty public_oe static_oe property

See Data.
public static DependencyProperty,System.Windows DataProperty
return System.Windows.DependencyProperty

DataViewProperty public_oe static_oe property

See DataView.
public static DependencyProperty,System.Windows DataViewProperty
return System.Windows.DependencyProperty

EntityManagerProperty public_oe static_oe property

See EntityManager.
public static DependencyProperty,System.Windows EntityManagerProperty
return System.Windows.DependencyProperty

HasChangesProperty public_oe static_oe property

See HasChanges.
public static DependencyProperty,System.Windows HasChangesProperty
return System.Windows.DependencyProperty

IsBusyProperty public_oe static_oe property

See IsBusy.
public static DependencyProperty,System.Windows IsBusyProperty
return System.Windows.DependencyProperty

IsLoadingDataProperty public_oe static_oe property

See IsLoadingData.
public static DependencyProperty,System.Windows IsLoadingDataProperty
return System.Windows.DependencyProperty

IsSavingChangesProperty public_oe static_oe property

See IsSavingChanges.
public static DependencyProperty,System.Windows IsSavingChangesProperty
return System.Windows.DependencyProperty

LoadSizeProperty public_oe static_oe property

See LoadSize.
public static DependencyProperty,System.Windows LoadSizeProperty
return System.Windows.DependencyProperty

PageSizeProperty public_oe static_oe property

See PageSize.
public static DependencyProperty,System.Windows PageSizeProperty
return System.Windows.DependencyProperty