How to change entities name for UserControl Header? I am create CodeFirst EF6 model and use scaffolding wizard from DevExpress. I change Entities name in NavBarControl in ViewModel for CollectionView, but how to change entites name for new opened View?
I suggest you override the GetTitleForNewEntity
method of your IncomingViewModel (derived from the SingleObjectViewModel<Incoming,...>
):
protected virtual string GetTitleForNewEntity() {
return typeof(TEntity).Name + CommonResources.Entity_New;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.