codesmithtools / Templates

CodeSmith Generator Templates
http://www.codesmithtools.com/product/generator
54 stars 35 forks source link

Delete custom rules from RuleManager class #547

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

With RuleManager class i can add some custom rules at runtime, but i can’t 
delete these rules.

What version of the product are you using?

CodeSmith Generator Professional 5.3 with PLINQO 5.0.4

Please provide any additional information below.

Original issue reported on code.google.com by c.tacca...@gmail.com on 28 Jan 2011 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 31 Jan 2011 at 4:26

GoogleCodeExporter commented 9 years ago
Hello,

There currently is no way to remove a rule from the RuleManager class without 
adding a Remove method to remove the rule. As a quick work around please see 
the source code located in the templates source folder. The RuleManager class 
can be found here and all changes can be made to this class. Please update this 
issue if you update this class as a short term fix.

Please let us know if you have any questions, concerns or need any help.

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 31 Jan 2011 at 4:29

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2123.

Updated RuleManager and added Remove method.

Original comment by tdupont...@gmail.com on 31 Jan 2011 at 9:51

GoogleCodeExporter commented 9 years ago
I have added a Remove method to the RuleManager, but it will be only work for 
business rules that you have added. If you want to remove a shared rule you can 
simply remove the rule from the entity MetaData class.

Let us know if that works for you. :)

Original comment by tdupont...@gmail.com on 31 Jan 2011 at 10:01