webForumDet fria alternativet

CodeSmith kodgenerator..

7 svar · 216 visningar · startad av Walker

WalkerMedlem sedan okt. 2002188 inlägg
#1

Hejsan

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

CodeSmith

PMedlem sedan jan. 20012 204 inlägg
#2

Nepp!

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

NickemannenMedlem sedan aug. 20003 575 inlägg
#3

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

WalkerMedlem sedan okt. 2002188 inlägg
#4

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?

PMedlem sedan jan. 20012 204 inlägg
#5

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

WalkerMedlem sedan okt. 2002188 inlägg
#6

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?

PMedlem sedan jan. 20012 204 inlägg
#7

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

WalkerMedlem sedan okt. 2002188 inlägg
#8

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..

131 ms totalt · 3 externa anrop · v20260731065814-full.30151723
127 ms — hämta forumlista (db)
0 ms — hämta statistik (cache)
128 ms — hämta tråd, inlägg och bilagor (db)