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
1 answer

How to use current stored procedure of database in code smith for create template?

I have a data base and create more stored procedure it,now i want use currently created stored procedures in code smith and create template from it. What to do? For example for use from table in code generator write the follow property : <%@…
Mohsen
  • 231
  • 5
  • 17
0
votes
3 answers

Generate Info (wrapper) Class from stored procedure

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…
ademg
  • 197
  • 2
  • 4
  • 17
0
votes
1 answer

Concatenate multiple SQL scripts using CodeSmith template

I'm trying to create simple tool for concatenating SQL scripts using CodeSmith. I have template which is generally just: header (check whether tables exists, begin transaction) body (concatenated scripts should be placed here) footer (commit or…
Illia Ratkevych
  • 3,507
  • 4
  • 29
  • 35
0
votes
2 answers

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…
Luke101
  • 63,072
  • 85
  • 231
  • 359
0
votes
2 answers

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…
Harryboy
  • 1,104
  • 9
  • 21
0
votes
1 answer

cannot open database login failed for user;asp.net;codesmith

A random error happens on the production environment cannot open database login failed for user I'm using windows authentication and the code generated by the codesmith netTiers and the production environment has Windows 2008 R2 and SQL server…
AMH
  • 1
  • 1
0
votes
1 answer

How to remove #region in visual studio along with all its content

I Used Codesmith to generate CSLA Template. But Codesmith generates Asynchronous Factory Methods Which I dont want and which are full of 'Csla.DataPortal' does not contain a definition for 'CreateAsync'... errors. So I want to remove all the code…
Teddy
  • 304
  • 5
  • 17
0
votes
1 answer

can we select specific columns with nettiers find() method

I am using nettiers for one of my clients. I have noticed that when I call find() with search parameters, the execution gets time out. When I saw the query using profiler, it makes use of all the columns. i.e. select * from table. Can we fetch…
VJOY
  • 3,752
  • 12
  • 57
  • 90
0
votes
1 answer

COMException using ODBC while trying to list "Views" in Codesmith

I have established an ODBC connection to a MySQL Server (ODBC driver version 5.1 by Oracle). The connection test succeeds! If I click to show the TABLES of the database it succeeds as well. Now I am trying to show the VIEWS and I get the following…
0
votes
1 answer

Sharing Codesmith properties with multiple project files

I'm using codesmith to generate our CSLA layer, and have 3 separate Codesmith projects (.csp) to generate CSLA Business Objects Data Access Scaffolded Unit Tests Each of those project files have a list of target database tables within them, in the…
Kevin Blake
  • 434
  • 2
  • 5
0
votes
1 answer

Method does not contain definition when it is there

I am using Visual Studio 2012 and Codesmith tools with the csla framework. I recently regenerated my classes and now I am getting the strangest errors.In one of my aspx.cs files, after build, it says "X does not contain a definition for…
McSick
  • 116
  • 1
  • 1
  • 6
0
votes
1 answer

Generate script from CodeSmith without executing the resultant script against the database

I have a fairly simple question - how do I generate a script from a CodeSmith template (.cst) without the generated script being run against the target database. That is, I have a CodeSmith template file that generates CRUD SQL Server stored…
Travis Ingram
  • 387
  • 5
  • 21
0
votes
2 answers

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…
Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
0
votes
1 answer

CodeSmith.Data Reference not found

I am using CodeSmith tool to generate code. but by mistake i removed the Reference CodeSmith.Data and now i can't found it, or where must be to add it.
Moutasim Momani
  • 149
  • 2
  • 3
  • 7
0
votes
1 answer

Project uses CodeSmith to generate the database but I don't have Codesmith anymore

I am new to Codesmith gen so... I don't have CodeSmith anymore, but my project uses CodeSmith to generate all the database context. I want to add a table to the database. Is there anyway possible to have the code generated for that table also, even…
Nathan
  • 24,586
  • 4
  • 27
  • 36