Programming

5 minute read

The following guide will walk you through the basics on how-to extend the CodeSmith Generator PLINQO Templates to fit your custom development needs. In this example we will create a new Webpage for each entity that we generate. This page will contain a LinqDataSource control and an ASP.NET GridView control that will display data from a corresponding entity that we generated. I always recommend that you use the PLINQO API when writing templates that interact with code generated by PLINQO as this…

6 minute read

In the following example, I’ll show you how to use the CodeSmith Generator CSLA template’s powerful renaming options. Many of you might have a legacy database with those ugly prefixes, or things you wish you could refactor but just can’t. Luckily, you’re in luck as CodeSmith Generator is going to save the day once again! By default we will strip any invalid characters from your property names like prefixed digits etc… Please note that these methods also work for…

5 minute read

In the previous article on how to use the partial methods in the CodeSmith Generator CSLA templates to preserve custom code mostly focused on the code side of things. For those of you who might be using Stored Procedures might be wondering… How do I accomplish preserving my custom stored procedure logic? Don’t worry, CodeSmith already though of this and didn’t leave you out in the dark! The CSLA templates by default will not automatically execute the generated stored…