Welcome to the CodeSmith Community!

CodeSmith Community

A description has not yet been added to this group.
  • External

    Nested Sets CodeSmith Templates project

    A set of Codesmith tempalates to create the data base structure, stored procedures and Data Access Layer for the implementation Celko's Nested Set structure to map trees in SQL
  • External

    Defining custom regions in TypeScript files and preserving their content during CodeSmith template based code generation

    I am looking to do some TypeScript code generation with CodeSmith and I’d like to use PreserveMerge merging strategy (preserve merge preserves your custom code within generated code between regenerations). CodeSmith’s merging mechanism is powerful and flexible (besides preserve it supports insert merge strategy as well. But if you feel constrained then feel free to create your own merging strategy ). Out of the box it supports C#, VB.NET, XML and T-SQL start region and end region notation. This is a problem...
  • External

    Making JSON data strong typed with TypeScript and CodeSmith

    The situation Imagine a scenario where you have a JSON service that returns data and you'd like to have it strongly typed on javascript powered client side. Let's say there is an ASP.NET MVC application that goes by the name MvcApplication33 (yes, the 33rd in a row of test applications) . There are two models in there in two files under Models folder: namespace MvcApplication33.Models { public class Customer { public string Name { get; set; } public string Surname { get; set; } public int Age { get;...
  • External

    Developer Tools for IT Jobs: DFW IT Staffing Firm Lists Must-Have Tools Every Developer Should Download Now | GIA Technology

    Need Developer tools for IT Jobs? DFW IT Staffing Firm, GIA Technology offers up the must-have Developer tools you should download now! To help you on your quest to find excellent developer jobs in Dallas, we’ve compiled a list of 14 tools that will make your life easier and help you put your skills to the best use . Here are the first 7: CodeSmith: CodeSmith is a template-based code-generation tool that uses syntax similar to ASP.NET to generate any type of code or text that you need. The benefit of this over...
  • External

    Extending Nettiers Part 2 – Adding an OnItemCommand | Head.SmackOnTable();

    A few days ago, I decided to try to extend the Repeater Control, by adding an OnItemCommand, like the System.Web.UI.WebControl. Simple I thought. Shouldnt be that hard I thought. I couldnt have been more wrong. I have learned alot with the whole experience. I have learned about event bubbling, the way that events get passed up the control tree till they are handled by their parents. Iv learned about the way that items that are nested will need to be databound for the event to be fired, even if the data is being...
  • External

    Codesmith | Selfelected

    If you use Codesmith / Nettiers (recommended) you might have stumbled upon: You set up the Nettiers project in Codesmith and mark all tables. When you generate the code one or more entities are missing. There is no error message. Besides the entity/entities not showing up you see it in the SourceTables property of nettiers. When you started the template all were marked. When the template was finished one/more table/s were not marked any more. Reason: the tables are missing a primary key. I have spent hours on...
  • External

    Silverlight MVVM Code Smith Templates « Oscar Agreda's Blog

    We created a set of CodeSmith Templates based on this MVVM implementation Microsoft hired a group of top Silverlight Business experts to create the MVVM PDC presentation for the creation of truly Silverlight Business Application using the MvvM pattern, unfortunately the sample application from the presentation is not very useful and extremely small, besides there are many topics that were not covered, John Papa would have needed 40 hours to truly explain the whole Kung Fu MVVM Implementation. That is why we...
  • External

    CodeSmith generated Audit Log Triggers - CodeProject

    Introduction I don't think its necessary for me to sing the praises of CodeSmith . Go to the link and try it out if you haven't. Background I needed to keep an Audit Log of changes made to SQL Server tables, but I'd already written the application so I needed a quick and easy solution that didn't require a whole new set of Unit and System testing of my application. I knew CodeSmith had some templates that generated SQL scripts and allowed developers to create there own scripts without having...
  • External

    For AuditLog saved to PLinqO increase database

    For AuditLog saved to the database PLinqO increase, this is a very simple can achieve 1. Built a log tables CREATE TABLE [dbo].[AuditLog]( [ID] [bigint] IDENTITY(1,1) NOT NULL, [AuditLog] [xml] NOT NULL, CONSTRAINT [PK_AuditLog] PRIMARY KEY CLUSTERED ( [ID] ASC ) 2. In the xxxDataContext. Cs documents generated with a method partial void AfterSubmitChanges() { this.ExecuteCommand("Insert into AuditLog values(‘" + this.LastAudit.ToXml() + "’)"); }
  • External

    NetTiers/CodeSmith - Code

    Below are some example queries I've thrown together from auto-generated NetTiers objects (eg, ExamUsers/ExamFaculty). You can learn more about the services layer of NetTiers at http://nettiers.com/ComponentLayer.ashx#_Service_API_Example:_3 protected void Page_Load(object sender, EventArgs e) { //get all grid.DataSource = getAll(); grid.DataBind(); } /// /// gets all exam requests and returns a tlist (works with Types that implement IEntity) /// for every table in your database, an entity will be generated...
  • External

    Implementing Simple Cache for CodeSmith and NetTiers (ASP.NET 2.0) | PeterKellner.net

    In this article, I will show a simple way to implement Cache for a GetData type call in the SqlClient layer of the generated code. I won’t go through all the details of getting to this point but will show the code and briefly explain how it works. I’m new to CodeSmith so I’m sure there is a better way to solve this problem, but for now, this is one technique that works. Just to give a lay of the land, my project is called peterkellnerblog and it has several subprojects that each create their own dll’s. They...
  • External

    Boost Your Coding Productivity

    Using templates is a great way to improve your productivity in coding APS.NET and .NET applications. Michael K. Campbell talks about tools for making coding more productive by using templates.
  • External

    How to Start a Small Business

    How to Choose the Right Legal Structure S Corp, C Corp, or LLC? Whether you are starting a business or you already run one but are having second thoughts about its legal structure , you need to take this matter seriously. Writing a Business Plan, Section by Section Are you starting a business? Advice for small businesses on what it takes to create a solid business plan, including forming an outline, forecasting credible financial information, and establishing a marketing strategy. How to Pitch Angel Investors...
  • External

    Utf8 and CodeSmith Generator

    If you are dealing with non-ASCII fonts in CodeSmith templates or their outputs then you probably noticed that non-ASCII chars are replaced with question marks. There is a cure though. Place ResponseEncoding="utf-8" attribute in node of cst file (CodeSmith template) like this: That's it. Both CodeSmith source file and output will happily contain all of your weird chars (why is there a need for non-ASCII anyway ;-))
  • External

    Business Objects for CodeSmith - CodeProject

    Introduction One of the biggest issues a developer faces when developing a large application, is maintaining design standards and methods. Design documents, coding standards, and code review were the only tools a developer had to work with in the golden days of coding. With the birth of code generators such as CodeSmith, development teams are now armed with a powerful tool to expedite the development process and maintain a standard throughout the application. When developing applications, templates can save...
  • External

    Telerik + Nettiers series

    Radgrid paging, sorting, grouping and sorting with Nettiers objectdatasource This post starts a new serie of post to demostrate the combination of two cools asp.net tools: Telerik Suite & Nettiers This example shows the use of the more common features of Radgrid as paging, sorting, filtering and grouping with a Nettiers object datasource. Some helpfull notes: 1) The objectdatasource method used to retrieve the data is GetPaged . 2) The code in OnSelecting event of the object datasource set correct the parameters...
  • External

    Ext JS Spotlight: CodeSmith Tools - Sencha - Blog

    CodeSmith Insight is help desk software with advanced application integration. This means that CodeSmith Insight can handle your email and user feedback, as well as your application’s error and crash reports, all from a single convenient location. CodeSmith Insight is useful to anyone and everyone who builds software. It connects end users and applications directly to support technicians and developers alike. CodeSmith Insight can: Manage your email with end users Organize and prioritize all of your cases Report...
  • External

    Integrating mojoPortal and .netTiers

    Introduction Over many years of programming, I have used various methods to streamline creating web applications. The efforts were geared towards one goal: produce applications in a repeatable and efficient manner. Often, clients wanted to... read more
  • External

    Integrating mojoPortal and .netTiers (Part 2)

    Modify the netTiers Code for the mojoPortal Site (Part 2) In Part 1 Prepare the Sites for Integration, we showed the steps necessary to lay a foundation for integrating mojoPortal and netTiers generated code. In Part 2, we will continue the... read more
  • External

    Scott Hanselman - CodeGen'ing a Data Access Layer with CodeSmith

    I mentioned CodeSmith in my podcast post earlier, and we'll talk about it on next week's show, but as a nice coincedence Brian Windheim, one of our architects, posted how he was using Code Generation on one of our internal Corillian (das)Blogs. Here's what he had to say (some parts redacted): Brian: I’ve become a huge fan of code generation for data access and object mapping. The [blank] team has been using a generated data access layer to interface with the [blank] database for a long time now,...
  • External

    Dave Burke - CodeSmith Sample Scripts

    ”So, Kramer, what do you think of CodeSmith after using it for a month?” “I ammmmmmm-LOVIN' it, Jerry!” One of the great things about CodeSmith are the many sample .CST scripts. One I use frequently is the ScriptTableData.cst file to transport a table from development to production. A sample of the end result (requiring all of, oh, 14 seconds total effort) for a table for quick Query Analyzer duplication to another server would look like the SQL below. So the sample scripts alone are worth the effort of...
  • External

    PLINQO adds 'wow' to LINQ 'cool'

    Ok, I am the first to admit that I am firmly entrenched in the "Not Built Here" camp. Not only for controls but tools as well. The only tool I've let into Visual Studio for the longest time is Resharper. I love the power of LINQ but the LINQ to SQL ORM tools have never really thrilled me. Well, I have changed that rule and I've added PLINQO . I've looked at other tools for ORM, even LINQ to SQL and EF. Thus far I've never liked how the code that these tools generated, but the code that...
  • External

    PLINQO - What LINQ to SQL Was Supposed To Be

    Lately I've been spending some time trying to optimize the amount of time it takes to develop web applications. I've realized that it just takes way too much time to do tasks that are common for pretty much every project I work on. Number one on the list has got to be creating a good data layer for an app. My last big project used LINQ to SQL on the backend and I was very happy with how that turned out. The only big complaint I had was that my changes would always get overwritten whenever I refreshed...
  • External

    Compiling CodeSmith templates to assemblies « Untitled

    There’s an option in CodeSmith studio to compile your template to an assembly. This has some advantages over the ”normal” way of working like referencing the template in a project, no compilation time when running… You can find the option under Tools | Compile To Assembly Fill texboxes in the Compile To Assembly window, being: Assembly Name: Output filepath Namespace: Namespace in which the template class will be placed Type Name: Class name of the template Press OK to start the compilation. Using the Codesmith...
  • External

    Scott Hanselman - Testing Code-Generated Code with NUnit, Temporary Files, Voodoo, Rubber Bands and Reflection

    Here's a little technical content for y'all. I write this on my new iJoy as the wife watches Lifetime this New Year's Day. We're into Unit Testing here and getting more so every day. We also do a lot of code generation as well, and struggled with how to test that the code generation works from end to end. We annotate XSDs to describe our objects. We have an XSD "DOM" Adapter that makes XML Schema documents look more friendly to consumers. We then use CodeSmith to spin through the "DOM"...
Page 1 of 11 (256 items) 12345»