Re: newbie: using xsd.exe
- From: "John Sitka" <johnsitka@xxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 17:33:19 -0500
and behold, you have a database in a dll
Then what?
"deko" <deko@xxxxxxxxxx> wrote in message news:zKadnfMQ1OVhC4vZnZ2dnUVZ_tWdnZ2d@xxxxxxxxxxxxxx
Figured it out.
Here's instructions for anyone else that may cross this path.
First, add these two paths to your System Path Environment variable:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
(or whatever they are in your installation)
Then run these 2 commands in an XP command window, in the directory where the schema is:
1) xsd.exe /d /l:CS myschema.xsd
Output:
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'C:\Documents and Settings\Administrator\My Documents\Visual Studio
2005\Projects\... myschema.cs'.
2) csc.exe /t:library myschema.cs /r:System.dll /r:System.Data.dll
Output:
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
and behold, you have a database in a dll
Then move the dll to the folder that houses the project that you want this dll to be a part of (e.g. MyProject_DAL), and add a
reference to it.
done
.
- Follow-Ups:
- Re: newbie: using xsd.exe
- From: deko
- Re: newbie: using xsd.exe
- References:
- newbie: using xsd.exe
- From: deko
- Re: newbie: using xsd.exe
- From: deko
- newbie: using xsd.exe
- Prev by Date: Re: Parent-Child Insertion, SQLTransaction, and Foreign Key error
- Next by Date: Get Oracle database schema information using ODP.NET
- Previous by thread: Re: newbie: using xsd.exe
- Next by thread: Re: newbie: using xsd.exe
- Index(es):
Relevant Pages
|