Table of Contents

Class RepositoryPropertyChangedPresenter<TEntity>

Namespace
HeBianGu.Systems.Repository
Assembly
HeBianGu.Systems.Repository.dll

直接对接模型的仓储基类

public class RepositoryPropertyChangedPresenter<TEntity> : RepositoryPropertyChangedPresenterBase, INotifyPropertyChanged, IDisplayer where TEntity : StringEntityBase, new()

Type Parameters

TEntity
Inheritance
RepositoryPropertyChangedPresenter<TEntity>
Implements
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

ClearCommand

public RelayCommand ClearCommand { get; }

Property Value

RelayCommand

Collection

说明

public IObservableSource<SelectViewModel<TEntity>> Collection { get; set; }

Property Value

IObservableSource<SelectViewModel<TEntity>>

DeleteCheckedCommand

public RelayCommand DeleteCheckedCommand { get; }

Property Value

RelayCommand

DeleteCommand

public RelayCommand DeleteCommand { get; }

Property Value

RelayCommand

DisplayMode

[Display(Name = "呈现的样式")]
public RepositoryDiplayMode DisplayMode { get; set; }

Property Value

RepositoryDiplayMode

EditCommand

public RelayCommand EditCommand { get; }

Property Value

RelayCommand

EditTransactionCommand

public TransactionCommand EditTransactionCommand { get; }

Property Value

TransactionCommand

ExportCommand

public RelayCommand ExportCommand { get; }

Property Value

RelayCommand

IsBusy

public bool IsBusy { get; set; }

Property Value

bool

LayoutSelectedIndex

[Display(Name = "布局方式")]
public int LayoutSelectedIndex { get; set; }

Property Value

int

ModelType

public Type ModelType { get; }

Property Value

Type

PageCount

[Display(Name = "每页显示的数量")]
public int PageCount { get; set; }

Property Value

int

Repository

public IStringRepository<TEntity> Repository { get; }

Property Value

IStringRepository<TEntity>

SaveCommand

public RelayCommand SaveCommand { get; }

Property Value

RelayCommand

SelectedItem

说明

public SelectViewModel<TEntity> SelectedItem { get; set; }

Property Value

SelectViewModel<TEntity>

UseAdd

[Display(Name = "启用新增")]
public bool UseAdd { get; set; }

Property Value

bool

UseCheckAll

[Display(Name = "启用全选")]
public bool UseCheckAll { get; set; }

Property Value

bool

UseClear

[Display(Name = "启用清空")]
public bool UseClear { get; set; }

Property Value

bool

UseDelete

[Display(Name = "启用删除")]
public bool UseDelete { get; set; }

Property Value

bool

UseDeleteChecked

[Display(Name = "启用删除选中")]
public bool UseDeleteChecked { get; set; }

Property Value

bool

UseEdit

[Display(Name = "启用编辑")]
public bool UseEdit { get; set; }

Property Value

bool

UseExport

[Display(Name = "启用导出")]
public bool UseExport { get; set; }

Property Value

bool

UseLayout

[Display(Name = "启用搜索")]
public bool UseLayout { get; set; }

Property Value

bool

UsePageCount

[Display(Name = "启用搜索")]
public bool UsePageCount { get; set; }

Property Value

bool

UseSearch

[Display(Name = "启用搜索")]
public bool UseSearch { get; set; }

Property Value

bool

UseView

[Display(Name = "启用查看")]
public bool UseView { get; set; }

Property Value

bool

ViewCommand

public RelayCommand ViewCommand { get; }

Property Value

RelayCommand

Methods

Add(object)

protected virtual Task Add(object obj)

Parameters

obj object

Returns

Task

Add(TEntity)

public virtual Task Add(TEntity m)

Parameters

m TEntity

Returns

Task

Clear(object)

protected virtual Task Clear(object obj)

Parameters

obj object

Returns

Task

Delete(object)

protected 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)

protected virtual Task Edit(object obj)

Parameters

obj object

Returns

Task

Export(string)

protected 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

GetViewModel(TEntity)

protected virtual object GetViewModel(TEntity entity)

Parameters

entity TEntity

Returns

object

Loaded(object)

protected override void Loaded(object obj)

Parameters

obj object

OnCollectionChanged(object)

protected virtual void OnCollectionChanged(object obj)

Parameters

obj object

Save()

protected virtual Task Save()

Returns

Task

View(object)

protected virtual Task View(object obj)

Parameters

obj object

Returns

Task