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
CheckedAll
public bool CheckedAll { get; set; }
Property Value
CheckedAllCommand
public RelayCommand CheckedAllCommand { get; }
Property Value
ClearCommand
public RelayCommand ClearCommand { get; }
Property Value
Collection
说明
public IObservableSource<SelectViewModel<TEntity>> Collection { get; set; }
Property Value
- IObservableSource<SelectViewModel<TEntity>>
DeleteCheckedCommand
public RelayCommand DeleteCheckedCommand { get; }
Property Value
DeleteCommand
public RelayCommand DeleteCommand { get; }
Property Value
DisplayMode
[Display(Name = "呈现的样式")]
public RepositoryDiplayMode DisplayMode { get; set; }
Property Value
EditCommand
public RelayCommand EditCommand { get; }
Property Value
EditTransactionCommand
public TransactionCommand EditTransactionCommand { get; }
Property Value
ExportCommand
public RelayCommand ExportCommand { get; }
Property Value
IsBusy
public bool IsBusy { get; set; }
Property Value
LayoutSelectedIndex
[Display(Name = "布局方式")]
public int LayoutSelectedIndex { get; set; }
Property Value
ModelType
public Type ModelType { get; }
Property Value
PageCount
[Display(Name = "每页显示的数量")]
public int PageCount { get; set; }
Property Value
Repository
public IStringRepository<TEntity> Repository { get; }
Property Value
- IStringRepository<TEntity>
SaveCommand
public RelayCommand SaveCommand { get; }
Property Value
SelectedItem
说明
public SelectViewModel<TEntity> SelectedItem { get; set; }
Property Value
- SelectViewModel<TEntity>
UseAdd
[Display(Name = "启用新增")]
public bool UseAdd { get; set; }
Property Value
UseCheckAll
[Display(Name = "启用全选")]
public bool UseCheckAll { get; set; }
Property Value
UseClear
[Display(Name = "启用清空")]
public bool UseClear { get; set; }
Property Value
UseDelete
[Display(Name = "启用删除")]
public bool UseDelete { get; set; }
Property Value
UseDeleteChecked
[Display(Name = "启用删除选中")]
public bool UseDeleteChecked { get; set; }
Property Value
UseEdit
[Display(Name = "启用编辑")]
public bool UseEdit { get; set; }
Property Value
UseExport
[Display(Name = "启用导出")]
public bool UseExport { get; set; }
Property Value
UseLayout
[Display(Name = "启用搜索")]
public bool UseLayout { get; set; }
Property Value
UsePageCount
[Display(Name = "启用搜索")]
public bool UsePageCount { get; set; }
Property Value
UseSearch
[Display(Name = "启用搜索")]
public bool UseSearch { get; set; }
Property Value
UseView
[Display(Name = "启用查看")]
public bool UseView { get; set; }
Property Value
ViewCommand
public RelayCommand ViewCommand { get; }
Property Value
Methods
Add(object)
protected virtual Task Add(object obj)
Parameters
obj
object
Returns
Add(TEntity)
public virtual Task Add(TEntity m)
Parameters
m
TEntity
Returns
Clear(object)
protected virtual Task Clear(object obj)
Parameters
obj
object
Returns
Delete(object)
protected virtual Task Delete(object obj)
Parameters
obj
object
Returns
DeleteAllChecked(object)
protected virtual Task DeleteAllChecked(object obj)
Parameters
obj
object
Returns
Edit(object)
protected virtual Task Edit(object obj)
Parameters
obj
object
Returns
Export(string)
protected virtual Task Export(string path)
Parameters
path
string
Returns
GetAddModel(TEntity)
protected virtual object GetAddModel(TEntity entity)
Parameters
entity
TEntity
Returns
GetEditModel(TEntity)
protected virtual object GetEditModel(TEntity entity)
Parameters
entity
TEntity
Returns
GetViewModel(TEntity)
protected virtual object GetViewModel(TEntity entity)
Parameters
entity
TEntity
Returns
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
View(object)
protected virtual Task View(object obj)
Parameters
obj
object