×

Notice

The forum is in read only mode.
×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon view inheritance at design time

More
1 year 1 month ago #11493 by Tolis
Replied by Tolis on topic view inheritance at design time
in addition ModelGeneratorUpdaters work fine
        class MyClass:ModelNodesGeneratorUpdater<MergedDifferencesGenerator>{
            public override void UpdateNode(ModelNode node){
                var mergedDifferences = ((IModelMergedDifferences) node);
                if (node.Id=="TestObject2_ListView"){
                    var modelMergedDifference = mergedDifferences.AddNode<IModelMergedDifference>();
                    modelMergedDifference.Strategy=modelMergedDifference.Strategies.First();
                    modelMergedDifference.View = (IModelObjectView) node.Application.Views["TestObject_ListView"];
                }
            }
        }

        public override void AddGeneratorUpdaters(ModelNodesGeneratorUpdaters updaters){
            base.AddGeneratorUpdaters(updaters);
            updaters.Add(new MyClass());
        }

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
  • nejjon
  • nejjon's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
1 year 1 month ago #11496 by nejjon
Replied by nejjon on topic view inheritance at design time
Thanks am using this approach.
Moderators: expand
Time to create page: 0.201 seconds