public MasterDetailPermission(MasterDetailOperationPermissionData logicRule) : base(OperationName, logicRule) { var modelApplication = ApplicationHelper.Instance.Application.Model; ChildListView = (IModelListView) modelApplication.Views[logicRule.ChildListView]; var modelClass = modelApplication.BOModel.GetClass(((ILogicRule) logicRule).TypeInfo.Type); CollectionMember = modelClass.FindMember(logicRule.CollectionMember); }
public MasterDetailPermission(MasterDetailOperationPermissionData logicRule) : base(OperationName, logicRule) { var modelApplication = ApplicationHelper.Instance.Application.Model; ChildListView = (IModelListView)modelApplication.Views[logicRule.ChildListView]; var modelClass = modelApplication.BOModel.GetClass(((ILogicRule)logicRule).TypeInfo.Type); CollectionMember = modelClass.FindMember(logicRule.CollectionMember); }