codesmith

Preserve SQL with CodeSmith

How would I create a procedure with a PRESERVE region like this: CREATE PROCEDURE RunSQL AS --region Custom processing --endregion SELECT * FROM SomeTable GO ...

Generate code from SPs using codesmith or MyGeneration?

I have CodeSmith and MyGeneration tools. I have SPs in SQL server. I want generate VB.Net code for SPs (not for Tables). Which templates will support for this? Please share if you know any templates that generates VB.net code from SP?. ...

How to add generated files to multiple projects using CodeSmith tools

I'm using CodeSmith on my current project and I'm trying to figure out an issue. For my CodeSmith project (.csp) I can select an option to have it automatically add all generated files to the current project (.csproj). But I want to be able to add the output to multiple projects (.csproj). Is there an option inside of CodeSmith to all...

C# CodeSmith LINQ to SQL question DELETE Operation

In a project I am working on I need to delete a "user" from my database. This "user" has two tables that reference it's foreign key. When hard deleting I am trying to delete all records from Table A and Table B that have foreign keys to the "user" and then deleting that "user" record. This is all done within repositories and using obj...

PLINQO Stop generation on build class library

Hi I've just started using PLINQO which looks really good so far. The only problem I have is whilst I'm doing custom amends on the entities I rebuild the contained class library and codesmith wants to regenrate my class library which prompts the visual studio message. "Your project has been amend outside, do you want to reload?" etc.. ...

PLINQO Primary key AND index problem

Hi, I've two tables, Profile and ProfileCategory ProfileId INT IX UserId UNIQUEIDENTIFIER PK (For one-to-one mapping with aspnet_membership) CompanyName Description ProfileCategory CategoryId ProfileId When I generate the code with PLINGO I get following errors Operator '==' cannot be applied to operands of type 'int?' and 'System....

Where can I find Codesmith templates?

I am new to Codesmith. Are there any templates for Windows Forms and WPF? Please Help. ...

Getting the full .NET type name in codesmith

Is there any way of getting the full .NET type name when writing a codesmith template? GetCSharpVariableType seems to return aliases only. Since I'm using reflection, I need to be able to generate attributes with the type name and just "int" or "string" will not work. ...

CodeSmith: How to reference an assembly.

using code smith, i'm trying to reference an assembly that i'm generating as output. the idea is to create the assembly in a build step, then in a later build step reference this assembly for further generation and output from the methods in the assembly. seems their help is a bit lacking in this area. it says something to the effect o...