[]
        
(Showing Draft Content)

C1.Data.ClientView-1

ClientView<T> Class

Represents a client view, that is, a live view that is connected to a remote source, such as an System.Data.Objects.ObjectContext.

Inheritance
View<T>
ClientView<T>
Namespace: C1.Data
Assembly: C1.Data.Entity.4.8.dll
Syntax
public class ClientView<T> : View<T>, IList, ICollection, IDisposable, IListSource, ITypedList, IItemProperties, IEditableCollectionView, IList<T>, ICollection<T>, IObservableSource<T>, IIndexedSource<T>, IEnumerable<T>, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Type Parameters
Name Description
T

The type of the elements in the view.

Properties

Name Description
AutoLoad

Gets or sets a boolean value indicating whether the client view must be loaded automatically when its data is accessed.

IsLoaded

Gets a value indicating whether the client view is loaded.

IsLoading

Gets a value indicating whether the client view is being loaded.

Scope

Gets the client scope to which this client view belongs.

Methods

Name Description
AsFiltered(Expression<Func<T, bool>>)

Filters the view on the server side using a predicate.

AsFilteredBound<TKey>(Expression<Func<T, TKey>>)

Filters the view on the server using a key selector function and configurable value and operator.

CancelLoad()

Cancels the current loading operation.

Include(string)

Specifies related objects to include while loading the client view.

Load()

Loads the entities of the client view.

Paging<TKey>(Expression<Func<T, TKey>>, bool, int)

Applies paging to this client view.

Paging<TKey>(Expression<Func<T, TKey>>, int)

Applies paging to this client view.

ProgressiveLoading<TKey>(Expression<Func<T, TKey>>, bool, int)

Specifies that the client view loading is performed not in a single trip to the server but in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.

ProgressiveLoading<TKey>(Expression<Func<T, TKey>>, int)

Specifies that the client view loading is performed not in a single trip to the server but in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.

Refresh()

Loads the entities of the client view ignoring the client-side cache.

Events

Name Description
Loaded

Occurs when the client view has finished loading succesfully, and also when an exception has been thrown during loading.

Extension Methods