---
title: "CodeSmith kodgenerator.."
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/76834-codesmith-kodgenerator"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Walker"
published: "2003-05-13T19:11:31.000Z"
updated: "2003-05-14T14:08:55.000Z"
replies: 7
views: 240
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/76834-codesmith-kodgenerator"
---

# CodeSmith kodgenerator..

## #1 — Walker, 2003-05-13T19:11Z

Hejsan

Undrar om det är någon som använt Codesmith och vet hur man bygger egna templates med detta verktyg?

[CodeSmith](http://www.ericjsmith.net/codesmith/)

Permalänk: https://www.webforum.nu/p/76834

## #2 — P, 2003-05-13T19:14Z

Nepp!

Jag använder CodeGenP 
url: p.latmask.com/CodeGenP

Permalänk: https://www.webforum.nu/p/1048217

## #3 — Nickemannen, 2003-05-13T20:39Z

Fick detta felmeddelandet P

```
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: File or assembly name Microsoft.Data.Odbc, or one of its dependencies, was not found.
File name: "Microsoft.Data.Odbc"
   at CodeGenP.Form1.Form1_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Fusion log follows: 
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Data.Odbc, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 (Fully-specified)
LOG: Appbase = C:\Documents and Settings\Nicke\Desktop\
LOG: Initial PrivatePath = NULL
Calling assembly : CodeGenP, Version=1.0.1200.36070, Culture=neutral, PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: Microsoft.Data.Odbc, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL file:///C:/Documents and Settings/Nicke/Desktop/Microsoft.Data.Odbc.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Nicke/Desktop/Microsoft.Data.Odbc/Microsoft.Data.Odbc.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Nicke/Desktop/Microsoft.Data.Odbc.EXE.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Nicke/Desktop/Microsoft.Data.Odbc/Microsoft.Data.Odbc.EXE.

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
CodeGenP
    Assembly Version: 1.0.1200.36070
    Win32 Version: 1.0.1200.36070
    CodeBase: file:///C:/Documents%20and%20Settings/Nicke/Desktop/CodeGenP.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
```

// Redigerat

Upptäckte att man var tvungen att ha MySql

Permalänk: https://www.webforum.nu/p/1048341

## #4 — Walker, 2003-05-14T08:52Z

> **P skrev:**
>
> Nepp!
> 
> Jag använder CodeGenP 
> url: p.latmask.com/CodeGenP

Är codegen ditt eget alster eller finns det någon hemsida med mer info?

Permalänk: https://www.webforum.nu/p/1048710

## #5 — P, 2003-05-14T11:05Z

Gjort själv.. finns i senare versioner om någon skulle vara intresserad ( mitt första winform program! ) :)

Permalänk: https://www.webforum.nu/p/1048801

## #6 — Walker, 2003-05-14T11:48Z

Nice.. 

Hur fungerar det om man har foreign keys i tabellerna, laddar den rätt värde då också, eller laddar den bara nycklen till det den posten i databasen?

Permalänk: https://www.webforum.nu/p/1048834

## #7 — P, 2003-05-14T12:52Z

foreign keys.. aldrig hört talas om  ;) fungerar på strängar/datum/int och lite annat

Har du testat programet? Senste versionen finns på p.latmask.com/CodeGenP/CodeGenP.zip

Permalänk: https://www.webforum.nu/p/1048909

## #8 — Walker, 2003-05-14T14:08Z

Foreign keys får du om du har normaliserat databasen. 

Sen beror det på om man vill göra ha det så eller inte.

Nope  har inte testat det än, använder Codesmith ju  :p 

Men skall kika på det senare..

Permalänk: https://www.webforum.nu/p/1049012

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/76834-codesmith-kodgenerator
