C# Класс IdeaBlade.Windows.ObjectDataSource

Наследование: System.Windows.Controls.Control
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Load() публичный Метод

Call to load or refresh data when AutoLoad is not on.
public Load ( ) : void
Результат void

Load() публичный Метод

Load data, passing the source query.
public Load ( IEntityQuery query ) : void
query IEntityQuery
Результат void

ObjectDataSource() публичный Метод

Creates an instance of this type.
public ObjectDataSource ( ) : IdeaBlade.Core
Результат IdeaBlade.Core

OnApplyTemplate() публичный Метод

Applies visual state changes for templating.
public OnApplyTemplate ( ) : void
Результат void

RejectChanges() публичный Метод

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
Результат void

SaveChanges() публичный Метод

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
Результат void

SaveChanges() публичный Метод

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
Результат void

SaveChanges() публичный Метод

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
Результат void

Описание свойств

AutoLoadProperty публичное статическое свойство

See AutoLoad.
public static DependencyProperty,System.Windows AutoLoadProperty
Результат System.Windows.DependencyProperty

DataProperty публичное статическое свойство

See Data.
public static DependencyProperty,System.Windows DataProperty
Результат System.Windows.DependencyProperty

DataViewProperty публичное статическое свойство

See DataView.
public static DependencyProperty,System.Windows DataViewProperty
Результат System.Windows.DependencyProperty

EntityManagerProperty публичное статическое свойство

See EntityManager.
public static DependencyProperty,System.Windows EntityManagerProperty
Результат System.Windows.DependencyProperty

HasChangesProperty публичное статическое свойство

See HasChanges.
public static DependencyProperty,System.Windows HasChangesProperty
Результат System.Windows.DependencyProperty

IsBusyProperty публичное статическое свойство

See IsBusy.
public static DependencyProperty,System.Windows IsBusyProperty
Результат System.Windows.DependencyProperty

IsLoadingDataProperty публичное статическое свойство

See IsLoadingData.
public static DependencyProperty,System.Windows IsLoadingDataProperty
Результат System.Windows.DependencyProperty

IsSavingChangesProperty публичное статическое свойство

See IsSavingChanges.
public static DependencyProperty,System.Windows IsSavingChangesProperty
Результат System.Windows.DependencyProperty

LoadSizeProperty публичное статическое свойство

See LoadSize.
public static DependencyProperty,System.Windows LoadSizeProperty
Результат System.Windows.DependencyProperty

PageSizeProperty публичное статическое свойство

See PageSize.
public static DependencyProperty,System.Windows PageSizeProperty
Результат System.Windows.DependencyProperty