Announcing The CodeSmith Generator 6.0 Visual Studio Template Editor

We are very excited to announce that CodeSmith Generator 6.0 will feature a built-in Visual Studio CodeSmith Generator Template Editor on top of our existing Visual Studio Integration . The team has been hard at work integrating a new Template Editor into our Visual Studio integration story. Without further ado: As you can see from the screenshot above, the CodeSmith Generator Template Editor is sitting inside of Visual Studio. This means you can use a familiar Development Interface to develop, edit and generate templates. Also noticeable is our new property grid which replaces the visual studio...

Extending the CodeSmith Generator PLINQO templates

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 ensures that the code generated has the proper names and associations and or types. Find relevant templates...

How-to: Preserve column names in generated PLINQO entities.

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. Let's assume you have a generated property for the column AccountId and it is defined like this: [System.CodeDom.Compiler.GeneratedCode("CodeSmith", "5.0.0.0")] private int _accountId = default(int); /// /// Gets the AccountId column value. /// [System.Data.Linq.Mapping.Column(Name = "AccountId", Storage = "_accountId", DbType = "int NOT NULL IDENTITY", IsPrimaryKey...

CodeSmith Generator supports Microsoft Visual Studio 2010 RTM!

CodeSmith Generator supports Microsoft Visual Studio 2010 RTM!

We have been working with Microsoft over the past few months to ensure that CodeSmith Generator works with Microsoft Visual Studio 2010 . The currently released version of CodeSmith Generator 5.x already supports Visual Studio 2010 Integration. Although the current support is titled as beta we have ran into very few Visual Studio 2010 bugs and will completely stand behind Visual Studio 2010. Microsoft and Microsoft logo's are trademarks of Microsoft Corporation....

How-to: Upgrade your existing PLINQO or CSLA CodeSmith Generator Templates

This article will help you upgrade your solutions templates safely and easily to the latest major or minor version. The latest templates can be found on our Google code project and the latest nightly build can be found here . The first thing to do is to download the template framework you wish to update. After the templates have been downloaded and extracted. Remove or Replace the old templates with the new ones keeping the same folder structure or simply update your CodeSmith Generator Project File(s) to point to the updated templates. If you have custom made changes, this is where you merge in...

How-to: Use Microsoft SQL Server CLR Functions and Functions in your CodeSmith Generator Templates

In a previous article , I had mentioned that we added support for Microsoft SQL Server CLR Stored procedures and Functions in the release of CodeSmith Generator 5.2 . Since then there has been a few questions since then on how to add this to your existing templates. The great news is, you can add the functionality in a few easy changes. To enable SQL function support you need to set IncludeFunctions="True" on any types inheriting from SchemaObjectBase (E.G. CommandSchema, CommandSchemaCollection, DatabaseSchema...). Once this has been done you will see SQL functions be added to your User...

How-to: Use Microsoft SQL Server Functions in your CodeSmith Generator Templates

CodeSmith Generator now supports Microsoft SQL Server Functions and Microsoft SQL Server CLR Functions with the release of CodeSmith Generator 5.2 . I will quickly show you how to add Microsoft SQL Server Function support to your CodeSmith Generator template. The first thing you need to do in order to use SQL Functions is to set the IncludeFunctions Property on any type that derives from SchemaObjectBase . The following property types are capable of showing functions when you add the IncludeFunctions="True" setting to the property: CommandSchema , CommandSchemaCollection and DatabaseSchema...

It's the littlest of things that we do, that make CodeSmith Generator shine.

During each release of CodeSmith Generator , one thing we always do is test upgrade scenarios between each versions and check for backwards compatibility among other tests. Recently, I was amazed at how much change has taken place between CodeSmith Generator 4.x and the latest CodeSmith Generator 5.1.x release when it comes to the user interface. CodeSmith Generator has made a huge effort to make CodeSmith Generator rock solid, crazy fast, and easy to use. I’d like to give everyone a quick inside look as to how I think CodeSmith Generator has accomplished this. Our goal from the beginning...

How-to: Debugging CodeSmith Generator on Microsoft Windows 7

We have updated the Tips & Tricks: Debugging CodeSmith Generator with the changes needed to debug CodeSmith Generator on Microsoft Windows7 . Here is the quick overview of what you need to-do to enable debugging on a Microsoft Windows 7 machine: Update the Just-In-Time debugger setting DbgJITDebugLaunchSetting . The setting is found in the registry at [ HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework ]. Set the value of DbgJITDebugLaunchSetting to 2. If you are using a 64bit operating system then you must also set the same key ( DbgJITDebugLaunchSetting ) in this folder [ HKEY_LOCAL_MACHINE...

CodeSmith Generator 5.1 Released

On May 6th we released CodeSmith Generator 5.1 . This update brings in many welcoming changes, to name a few: . netTiers 2.3 , PLINQO 3.0 . Also CodeSmith Generator and now requires that the .NET 3.5 Framework is installed before CodeSmith Generator installs. Final Updated installer to launch CodeSmith Generator after install. Loading a CSP on a new machine with an new connection string will cause TableSchema's UI to be blank. Fixed a bug where removing a data source from Database Explorer wouldn't permanently remove the data source. Fixed a threading error when removing a data source from...