Bug in VB Codesmith Template?

Bug in VB Codesmith Template?

Old forum URL: forums.lhotka.net/forums/t/2725.aspx


RockyRocks posted on Wednesday, April 18, 2007

Thanks to all involved in creating the CodeSmith templates for the latest version of the framework. You are all life savers!

I am just looking through the generated code for a test class using the VB template for EditableRoot and have noticed a slight peculiarity which might be a bug with the template. It is in an area that is new in 2.1 and relates to AddInstanceBusinessRules. I don't yet have the 2.1 e-book (I'm still trying to determine how to get the company to pay for it - no, it isn't easy!) so I can't check the detail there.

In the generated sub, there is a call to MyBase.AddBusinessRules(). Should this instead be MyBase.AddInstanceBusinessRules()?

I'd appreciate the input of anyone that has more experience of this newer area.

Many Thanks.

Copyright (c) Marimer LLC