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

Data not refreshing in netTier DAL- possibly caching issue?

We're having a strange issue with one entity/data-source seemingly caching data in Data Access layer. Basically the tables are a standard SQL Server table (SQL server 2008 R2). The code is generated the same way using the same template(NetTier…
1
vote
3 answers

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…
jac
  • 9,666
  • 2
  • 34
  • 63
1
vote
4 answers

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…
Ralph Lavelle
  • 5,718
  • 4
  • 36
  • 46
1
vote
1 answer

how to filter linq expression for use with CodeSmith bulk update

I'm using CodeSmith Plinqo's bulk update functionality with the following wrapper code: public int Update(Expression> filter, Expression> evaluator) where TEntity : class { var tbl =…
jhilden
  • 12,207
  • 5
  • 53
  • 76
0
votes
1 answer

Code Smith 6: Using Custom Utility

I have a CodeSmith 6 project setup in Visual Studio. I added a class with a shared method (VB), but cannot refer to it in my template. I also tried adding an assembly reference to the project DLL, but that didn't work either. How can I use my own…
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
0
votes
3 answers

Calling SP from asp.net gives error whereas it works fine from SSMS

I have two tables: Property Property_Localize and a SP to delete record from Property: (Delete_SP) I have a trigger that fires Instead Of deleting records from Property it deletes related records from Property_Localize table first and then…
Imran Rizvi
  • 7,331
  • 11
  • 57
  • 101
0
votes
1 answer

NetTiers 2.3 generation failing

I have a .nettiers 2.3 template that I have been generating from a SQL Server 2008 database which has been working for some time. In the last few days, however, the generation has been failing with the output saying there is 1 Error/Warning, but I…
Steve
  • 9,335
  • 10
  • 49
  • 81
0
votes
1 answer

How do I navigate to the parent property (xmlproperty) - Codesmith

I have the following xml: 123 Test Dr. Dallas TX 75075
Nick
  • 7,475
  • 18
  • 77
  • 128
0
votes
1 answer

can you use plinqo with T4 or other code generation tools???

I want to use plinqo for my personal project, but seem like you need codesmith pro. its 299 bucks. is there a way we can use it with other code generation tools? I only need it for linq many to many.
qinking126
  • 11,385
  • 25
  • 74
  • 124
0
votes
0 answers

duplicate form submission in mvc, without using javascript

im working in a project where we are assigned with different forms to create. When im using the submit button to add a new record, its either duplicated or posted 3 times and i cant find the reason why. Using javascript with a simple function can…
0
votes
1 answer

Issue with net tiers not generating custom stored procedures

I am using Net Tiers and codesmiths to generate my data layer. For some strange reason, it is no longer generating my custom stored procedures. When I view the report at the end of the generation, it is not listing any procs, get the all exist in…
mp3duck
  • 2,633
  • 7
  • 26
  • 40
0
votes
2 answers

A few questions about CodeSmith

I have recently started studying CodeSmith and I have a few questions. I would like to make a template with 4 blocks. Each block will be selected by the user. How can I set the text block (function) to selecting user? How can I move blocks in…
user45245
  • 845
  • 1
  • 8
  • 18
0
votes
1 answer

What is the point of ParameterSchema.AllowDBNull in CodeSmith?

I'm currently trying to use write a simple C# wrapper class for all the stored procedures in a database. For this I'm using CodeSmith and in particular the SchemaExplorer. While iterating through the parameters for a stored procedure, I noticed the…
Martyn
  • 1,446
  • 2
  • 19
  • 30
0
votes
1 answer

Is there any way to add new column to an NetTiers model without using codesmith?

I have to change some legacy code that was generated with CodeSmith using NetTiers templates. I need to add some new columns and I don't have the original template neither a CodeSmith licence. Is there any way to add them without use CodeSmith?
kuhlin
  • 23
  • 1
  • 7
0
votes
1 answer

CodeSmith Generator get View Schema

I am using the NetTiers CodeSmith templates. I am looking for a way to get the underlying column and table information from a view. CodeSmith's schema explorer is rather lacking in information about views. Is there something I am missing in…
Jereme
  • 630
  • 6
  • 18