Exemplo n.º 1
0
 private static string GetViewId(ModelMergedDifferencesAttribute attribute, IModelClass modelClass)
 => (attribute.ViewType == ViewType.DetailView ? (IModelObjectView)modelClass.DefaultDetailView : modelClass.DefaultListView).Id;
Exemplo n.º 2
0
 private string GetSourceView(ModelNode node, ModelMergedDifferencesAttribute attribute)
 => attribute.SourceView ?? GetViewId(attribute, node.Application.BOModel.GetClass(attribute.TargetType));
Exemplo n.º 3
0
 private string GetTargetView(ModelNode node, ModelMergedDifferencesAttribute attribute, ITypeInfo typeInfo)
 => attribute.TargetView ?? GetViewId(attribute, node.Application.BOModel.GetClass(typeInfo.Type));