Questions tagged [codesmith]

CodeSmith Generator is a template driven source code generator that automates the creation of common application source code for any language.

CodeSmith Generator is a software development tool to help you get your job done faster. Technically speaking it is a template driven source code generator that automates the creation of common application source code for any language (C#, Java, VB, PHP, ASP.NET, SQL, etc.). CodeSmith Generator includes many useful templates as well as entire sets of templates for generating proven architectures. You can easily modify any templates or write your own to generate your code exactly the way you want it.

CodeSmith Generator's syntax is almost identical to ASP.NET. So if you are familiar with ASP.NET then you should be able to quickly learn the template syntax. You can use the C#, VB.NET or JScript.NET languages in your templates and your templates can output any ASCII-based (text based) language.

CodeSmith Generator can help you produce higher-quality, more consistent code in less time and enables software developers to efficiently:

  1. Reduce repetitive coding.
  2. Generate your code in less time with fewer bugs.
  3. Produce consistent code that adheres to your standards.
  4. Create your own custom templates for any language.
84 questions
0
votes
0 answers

InvalidOperationException: The connection was not closed. The connection's current state is connecting

I have this following code written using Codesmith (similar to Entity Framework). I am getting the exception mentioned below after the code. And I don't get this exception every time. This application is WPF and Multi threaded. public…
kaliprasad
  • 11
  • 6
0
votes
0 answers

Codesmith: Error in *. Ex: System.InvalidOpException: ExecuteReader requires an open and available Con. The con's current state is closed (C#, SQL)

I am using Codesmith for database connectivity, it is throwing the below exception now and then. Also this class have Singleton What I assume is codesmith handles the opening & closing the connection with database automatically. Error in *. Ex:…
kaliprasad
  • 11
  • 6
0
votes
1 answer

Postgresql schema povider

I have a ASP.NET project that is used MS SQL db. DB access code is generated using CodeSmith .netTiers. Now, project will be merged with another and should use PostgreSQL db. I am looking for PostgreSQL Schema Provider for CodeSmith. But found only…
Anton
  • 9,682
  • 11
  • 38
  • 68
0
votes
1 answer

Using EmberJS in metalsmith.IO

I need to use EmberJS within an already existing codesmith.IO project that previously was using Angular 1. I feel like I'm missing something simple in terms of implementing that, and since I've always used Ember CLI to generate the template for a…
0
votes
1 answer

CodeSmith Nhibernate

Im developing a multithreading application using code smith Nhibernate Template, i read that i must use a session or every thread, problem is i dont know how to get a new session from CodeSmith Generated classes ... can any body provide me a very…
Stacker
  • 8,157
  • 18
  • 73
  • 135
0
votes
1 answer

Codesmith - Item cannot be found in the collection corresponding to the requested name or ordinal

Trying to generate an output file in Codesmith Generator (csg). I am using ADOXSchemaProvider to access a sql database. Am getting this error on a trivial table (1 varchar(50) field) The syntax of the message seems to indicate the problem is…
greg
  • 1,673
  • 1
  • 17
  • 30
0
votes
1 answer

Convert SQL Server Table-Valued parameter to C# data access wrapper

Using Codesmith 7, I'm trying to generate a C# data access wrapper. The table-valued parameters only show up as object in DataType and SystemType. It boils down to two issues: Is there a way of accessing the user defined table type through…
spikej
  • 136
  • 2
  • 9
0
votes
1 answer

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…
James
  • 6,471
  • 11
  • 59
  • 86
0
votes
2 answers

Where can I find Codesmith templates?

I am new to Codesmith. Are there any templates for Windows Forms and WPF? Please Help.
Shahin
  • 12,543
  • 39
  • 127
  • 205
0
votes
1 answer

PLINQO Primary key AND index problem

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…
Mantisimo
  • 4,203
  • 5
  • 37
  • 55
0
votes
1 answer

PLINQO Stop generation on build class library

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…
Mantisimo
  • 4,203
  • 5
  • 37
  • 55
0
votes
1 answer

CodeSmith.Insight.ClientError CodeSmith 5.2

Can someone help me with this problem?. I have been having with CodeSmith 5.2. Not sure if I messed up something with visual studio..I just right click and manage or Generate output and this error occurs If I try to open CodeSmithapplication and…
user575219
  • 2,346
  • 15
  • 54
  • 105
0
votes
2 answers

Adding a datasource to Codesmith

I am trying to add a DataSource to Codesmith 7.1.0 rev 15317 This is a new install on a Windows 10 box. I keep getting the error Test Failed. Arithmetic operation resulted in an overflow. I have done this many times on my old win8 box. The…
greg
  • 1,673
  • 1
  • 17
  • 30
0
votes
1 answer

build a single output with CodeSmith csp

CodeSmith project files (csp) allow multiple outputs defined and run together. I would like to re-generate only a single output from the command line the way the UI allows. Is there a command line switch to cs.exe I'm missing that will allow me to…
JJS
  • 6,431
  • 1
  • 54
  • 70
0
votes
1 answer

CodeSmith generator not generating classes

We use CodeSmith and Nhibernate 3.2 for generating our BusinessObjects and Viewmodels. My codesmith templates were working fine till last week. Not sure what I did specifically but suddenly my viewmodels stopped generating. Business objects are…
user575219
  • 2,346
  • 15
  • 54
  • 105