Table of Contents

Class RepositoryViewModelBase<TViewModel, TEntity>

Namespace
HeBianGu.General.WpfControlLib
Assembly
HeBianGu.General.WpfControlLib.dll

直接对接模型的仓储基类

public abstract class RepositoryViewModelBase<TViewModel, TEntity> : RepositoryViewModelBase, INotifyPropertyChanged, IRepositoryViewModelBase<TEntity>, IRepositoryViewModel where TViewModel : SelectViewModel<TEntity> where TEntity : StringEntityBase, new()

Type Parameters

TViewModel
TEntity
Inheritance
RepositoryViewModelBase<TViewModel, TEntity>
Implements
Derived
Inherited Members
Extension Methods

Properties

AddCommand

public RelayCommand AddCommand { get; }

Property Value

RelayCommand

CheckedAll

public bool CheckedAll { get; set; }

Property Value

bool

CheckedAllCommand

public RelayCommand CheckedAllCommand { get; }

Property Value

RelayCommand

CheckedAllCurrentPageCommand

public RelayCommand CheckedAllCurrentPageCommand { get; }

Property Value

RelayCommand

CheckedAllFilterSourceCommand

public RelayCommand CheckedAllFilterSourceCommand { get; }

Property Value

RelayCommand

CheckedNoneCommand

public RelayCommand CheckedNoneCommand { get; }

Property Value

RelayCommand

ClearCommand

public RelayCommand ClearCommand { get; }

Property Value

RelayCommand

Collection

说明

public IObservableSource<TViewModel> Collection { get; set; }

Property Value

IObservableSource<TViewModel>

DeleteCheckedCommand

public RelayCommand DeleteCheckedCommand { get; }

Property Value

RelayCommand

DeleteCommand

public RelayCommand DeleteCommand { get; }

Property Value

RelayCommand

EditCommand

public RelayCommand EditCommand { get; }

Property Value

RelayCommand

EditTransactionCommand

public TransactionCommand EditTransactionCommand { get; }

Property Value

TransactionCommand

ExportCommand

public RelayCommand ExportCommand { get; }

Property Value

RelayCommand

GridSetCommand

public RelayCommand GridSetCommand { get; }

Property Value

RelayCommand

IsBusy

public bool IsBusy { get; set; }

Property Value

bool

ModelType

public Type ModelType { get; }

Property Value

Type

NextCommand

public RelayCommand NextCommand { get; }

Property Value

RelayCommand

PreviousCommand

public RelayCommand PreviousCommand { get; }

Property Value

RelayCommand

PrintCommand

public RelayCommand PrintCommand { get; }

Property Value

RelayCommand

Repository

public IStringRepository<TEntity> Repository { get; }

Property Value

IStringRepository<TEntity>

SaveCommand

public RelayCommand SaveCommand { get; }

Property Value

RelayCommand

UseMessage

说明

public bool UseMessage { get; set; }

Property Value

bool

ViewCommand

public RelayCommand ViewCommand { get; }

Property Value

RelayCommand

Methods

Add(object)

public virtual Task Add(object obj)

Parameters

obj object

Returns

Task

Add(params TEntity[])

public abstract Task Add(params TEntity[] ms)

Parameters

ms TEntity[]

Returns

Task

CanClear()

public virtual bool CanClear()

Returns

bool

Clear(object)

public virtual Task Clear(object obj = null)

Parameters

obj object

Returns

Task

Delete(object)

public virtual Task Delete(object obj)

Parameters

obj object

Returns

Task

DeleteAllChecked(object)

protected virtual Task DeleteAllChecked(object obj)

Parameters

obj object

Returns

Task

Edit(object)

public virtual Task Edit(object obj)

Parameters

obj object

Returns

Task

Export(string)

public virtual Task Export(string path)

Parameters

path string

Returns

Task

GetAddModel(TEntity)

protected virtual object GetAddModel(TEntity entity)

Parameters

entity TEntity

Returns

object

GetEditModel(TEntity)

protected virtual object GetEditModel(TEntity entity)

Parameters

entity TEntity

Returns

object

GetIncludes()

protected virtual IEnumerable<string> GetIncludes()

Returns

IEnumerable<string>

GetViewModel(TEntity)

protected virtual object GetViewModel(TEntity entity)

Parameters

entity TEntity

Returns

object

GridSet(object)

protected void GridSet(object obj)

Parameters

obj object

Loaded(object)

protected override void Loaded(object obj)

Parameters

obj object

Next()

public virtual void Next()

OnCollectionChanged(object)

protected virtual void OnCollectionChanged(object obj)

Parameters

obj object

Previous()

public virtual void Previous()

Print()

protected virtual Task<bool> Print()

Returns

Task<bool>

RefreshData(params string[])

public abstract void RefreshData(params string[] includes)

Parameters

includes string[]

Save()

public virtual Task<int> Save()

Returns

Task<int>

View(object)

public virtual Task View(object obj)

Parameters

obj object

Returns

Task