codesmith

Codesmith resources

I use Codesmith to create our code generation templates and have had success in learning how to use the tool by looking at example templates and the built in documentation. However I was wondering if there are any other resources (books, articles, tutorials, etc.) for getting a better grasp of Codesmith? ...

NHibernate, Codesmith and project physical architecture

Recently I tried CodeSmith templates for NHibernate. As many of you might watched, there is a video explaining how to create a Petshop.Data using these templates. My question is what is the correct architecture in this approach? Should we have a BLL (or Services) layer to interact with this Petshop.Data or directly call ManagerFactory in...

Code generator (.net)

Do you have any experience with T4 and T4 Editor? Can you compare it to CodeSmith or MyGeneration? What code generators do you use? What do you recommend? I want to use it for generatig of SPs. Is there anything else you find code generation useful? ...

How to Do a Merge for XML files in Code Smith?

Hi, I am using CodeSmith to Generate The Files in my Project. It has functionalities to Merge the C#/VB & SQL files using Insert Region & Preserve Region Strategies. How Can I extend these to merge the XML files I am creating?. Thanks ...

Is Codesmith a viable ORM tool (or should I stick with a true ORM)

I'm shopping for an ORM tool. I'm agonizing over the purchase of either CodeSmith (which is currently available at a substantial discount) versus an ORM tool. LINQ to SQL is off my list; SubSonic 2.x is off the list (I don't want to invest in that dead end knowing that SubSonic 3.0 is coming. NHibernate seems like overkill as does LLBL...

Using NHibernate with Codesmith to generate ORM

Just started learning NHiberate. It seems rather tedious to write proper hbm.xml config files for each database table. The question is can NHibernate read into tables and automatically retrieve relationships and needed config file as well as database mapper classes for you? It seems that the programmer still has to do a lot of ground w...

CodeSmith template for NHibernate multiple databases

Is there any codesmith template for NHibernate that handles multiple databases connection? ...

CodeSmith v.s. T4: .netTiers level suite

Has someone ported the netTiers template set to Visual Studio's T4 templates? Or is there a system of similar scope? Does anyone use T4 in a work environment? What (if any) major differences are there between Codesmith and T4? ...

Is there any class similar to ProvidersHelper but not for web?

Is there any class similar to ProvidersHelper but not for web? I want to instantiate a collection of providers. Actually I'm using CodeSmith & Nettiers, and the db provider is Oracle. It generated a provider section to be added at app.config, and i dont know why it uses System.Web.Configuration classes or why at this section it says SQLC...

ORM Tool - Crossroads?

Hi I seem to be at an ORM Tool crossroad and would like some advice of people who have faced a similar challenge. In the past I have been using CodeSmith with NetTiers Templates to generate my DAL all has been quite good, however I have decided to drop this for one reason or another. So I am at a crossroads and have found the following:...

Can anyone explain parameters in CodeSmith SchemaExplorer.ViewSchema Constructor?

From CodeSmith API help [C#] public ViewSchema( DatabaseSchema DatabaseSchema, string String, string String, DateTime DateTime, ExtendedProperty[] ExtendedProperty[] ); Parameters database name owner dateCreated extendedProperties I can see what the first 3 parameters mean. But what is the purpose of last 2 parameters ...

Anyone have a UITypeEditor that picks System.Type instances?

I am busy writing a CodeSmith template that has one of its properties as type System.Type. I want to be able to select the type using a UI that picks the assembly, loads the assembly and then displays the types that are available in that assembly. I can then go and pick one of the types. Has anyone encountered or written code that does ...

ORM's for .net 2.0 with tool and/or codesmith support but without xml

I'm searching for an ORM framework for .NET 2.0 (has to run on Windows 2000, so 3.0/3.5 is out) that is entirely code configured, and does not require XML. I need this to be "hard coded" in the app so that the app can be stand-alone and copied without any support files. I've looked at most of the common ones like nHibernate and the XML...

Free Codesmith alternatives?

Are there any free/open source alternatives to Codesmith that would be comparable in features and generate .NET code? ...

Visual Studio solution structure using Codesmith frameworks (NetTiers / Plinqo)

I have been using the Codesmith framework NetTiers to generate a DAL etc., into a folder called, say, 'NetTiers', outside my main project's folder, and referencing the DLLs within that folder from my main project. I've started using the Plinqo framework, and want to use the generated files from that framework within the same project as ...

Are There Reasons To Not Use CustomAttributes?

This is mostly a request for comments if there is a reason I should not go down this road. I have a multi-tierd, CodeSmith generated application. At the UI level there need to be some fields that are required, and the required fields will vary depending on field values in the bound entity. What I am thinking of doing is adding a "Proper...

is it possible to use MVP pattern with Codesmith Ntier or PLINQO Template

Currently we are working on ASP .net application and i would prefer to go ahead with MVP pattern (for UI) due to several advantage it provides, But the con of going ahead with that approach is too much of hand coding which will eat up time. I already identified that it is possible to generate DAL with any template or by using LINQ to S...

Has anyone suffered any performance issues with CodeSmith or MyGeneration

I am new to both these pieces of software. A colleague of mine recommended these two to me. Just wanted to know if the stored procedure code they produce have any performance problems? I would like to use the software to produce stored procedures only. Anything on these two I should know about? ...

Generate Info (wrapper) Class from stored procedure

Hello everybody I am in a crucial project and I am trying to speed up the development phase by using codesmith for generating the business class DAL and info class for the tables of my project. There are about 50 tables with relationships parent child many to many and for retrieving data I have to code several inner joins in stored pr...

Visual Studio T4 vs CodeSmith

I've been using CodeSmith for the past 2 years and love what it does for me. However, I also know about T4 which is built in to Visual Studio and can do some pretty cool stuff too. Based on conversations with friends T4 in VS2010 T4 is going to be even better. So the question is: do I keep riding the CodeSmith bus or is it time to s...