Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

Extensibility Method Definitions - AddRules #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate table manager classes 
2. Implement AddRules stub found in "Extensibility Method Definitions" 

What is the expected output? What do you see instead?
When Rules are added in manager class, they are not run if manage is not 
instantiated e.g. following code compiles but fails to run the rule.

DbDataContext ctx = new DbDataContext();  
var user = (from o in ctx.User where o.ID == 123 select o).Single();
user.Email = "NOT VALID";
ctx.SubmitChanges();

Since you are providing the same extensibility method definitions in the 
entity class itself, should this region with AddRules stub be moved to 
entity partial class?

Regards,
Oleg

What version of the product are you using?
V 3.0.687

Original issue reported on code.google.com by oleg.put...@gmail.com on 18 Jul 2009 at 3:52

GoogleCodeExporter commented 9 years ago
This is PLINQO V 3.0.687

Original comment by oleg.put...@gmail.com on 18 Jul 2009 at 3:54

GoogleCodeExporter commented 9 years ago
This has been cleaned up in svn.  Thanks.

Original comment by paul.wel...@gmail.com on 20 Jul 2009 at 8:25