One of the best features of code generation is the reality of being able to actively generate you code while preserving custom changes. This allows you to implement custom logic while constantly making changes to your metadata and getting the latest template changes. CodeSmith Generator has worked hard on making this happen in both the PLINQO and CSLA Templates. The CSLA templates offer many partial method overrides to make your life easier. It is recommended that you place any partial methods…
I came across this bug last night,
which was occurring right as CSLA 4
was released. It had to deal with the
CodeSmith CSLA templates
when you set
true. The error is quite obscure and not
very intuitive as the signs of a bug are only found when you check to see if
your business object IsValid. The scenario in this case is when you set a
required managed property, the rules never fully evaluate the set value. A
bunch of other side effects could occur as well. Here is the…
There may come a time where you need to rename a column in your generated entity for whatever reason. The following tip and trick article will show you how to quickly accomplish this.
I have done a few of these upgrades for a few big sites like bink.nu and Sober.com. Here is the safest way without a ton of headaches. Please contact me if you need help, I’m willing to do the upgrade for people as well… Please do SQL backups after every step!
We recently released a new major version of the CodeSmith Generator CSLA templates that add support for many new features including Visual Studio 2010, CSLA 4.0 and Silverlight 4.0 support. They can be downloaded here. When upgrading to the templates and you are going from CSLA 3.8 to the latest CSLA 3.8.4 templates, there really aren’t any changes you need to make other than updating your CodeSmith Project File template location to point to the new version of the templates. The easiest…