public virtual ViewConfigurationModel GetBy(ViewConfigurationModelNameCriteria criteria) { Type entityType = ClientEntities.Find(criteria.EntityType).EntityType; var evm = UIModel.Views.Create(entityType, criteria.ViewName); var m = new ViewConfigurationModel(); m.Read(evm); (m as IDirtyAware).MarkSaved(); return(m); }
private EntityList DA_GetByEntity(Type entityType, string viewName) { var list = this.NewList(); var evm = UIModel.Views.Create(entityType, viewName); var m = new ViewConfigurationModel(); list.Add(m); m.Read(evm); m.MarkSaved(); return list; }
public virtual ViewConfigurationModelList GetByEntity(Type entityType, string viewName) { var list = this.NewList(); var evm = UIModel.Views.Create(entityType, viewName); var m = new ViewConfigurationModel(); list.Add(m); m.Read(evm); (m as IDirtyAware).MarkSaved(); return(list); }