Hi MR,
Have you had a chance to lookup the suggestions in the former messages or
have you got any further ideas on this issue? If there're anything else we
can help, please feel free to post here. Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 108746306
| References: <up************ **@TK2MSFTNGP10 .phx.gbl>
<uk************ *@TK2MSFTNGP15. phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From:
st*****@online. microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 08 Aug 2005 07:24:36 GMT
| Subject: Re: Dataset Schema from XSD
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| Message-ID: <tM************ **@TK2MSFTNGXA0 1.phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Lines: 73
| Path: TK2MSFTNGXA01.p hx.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.langua ges.csharp:1148 57
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Thanks for Sahil's good suggestion.
|
| Hi MR,
|
| For typed DataSEt, of course they can be precompiled into assembly, we
can
| create TypedDataSet through a XSD in VS.NET and after compiled the
| typeddataset's class will exisitng in the output assembly.
| Also, if you think using un-typed dataset and load schema dynamically is
| ok, we can embed the schema's xml file into our application's resources
| (embeded in the assembly). then, the
| System.Reflecti on.Assembly.Get ManifestResourc eStream method can help us
| retrieve embeded file stream from assemlby's resource collection:
|
| #Assembly.GetMa nifestResourceS tream Method
|
http://msdn.microsoft.com/library/en...ReflectionAsse
| mblyClassGetMan ifestResourceSt reamTopic.asp?f rame=true
|
| Hope also helps. Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure!
www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
| --------------------
| | From: "Sahil Malik [MVP]" <co************ *****@nospam.co m>
| | References: <up************ **@TK2MSFTNGP10 .phx.gbl>
| | Subject: Re: Dataset Schema from XSD
| | Date: Sun, 7 Aug 2005 01:06:36 -0400
| | Lines: 25
| | Organization: dotnetawaremonk ey
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| | X-RFC2646: Format=Flowed; Response
| | Message-ID: <uk************ *@TK2MSFTNGP15. phx.gbl>
| | Newsgroups:
|
microsoft.publi c.data.ado,micr osoft.public.do tnet.framework. adonet,microsof t
| .public.dotnet. languages.cshar p
| | NNTP-Posting-Host: pool-138-88-231-157.res.east.ve rizon.net
138.88.231.157
| | Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP15.phx. gbl
| | Xref: TK2MSFTNGXA01.p hx.gbl
| microsoft.publi c.dotnet.framew ork.adonet:3358 2
| microsoft.publi c.dotnet.langua ges.csharp:1147 23
| microsoft.publi c.data.ado:6667
| | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| |
| | Yes this is possible.
| |
| | You can compile them at runtime and then make your application smart
| enough
| | that it doesn't recompile the same XSD twice.
| |
| | - Sahil Malik [MVP]
| | ADO.NET 2.0 book -
| |
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
| |
|
----------------------------------------------------------------------------
| |
| |
| |
| | "MR" <co******@newsg roup.nospam> wrote in message
| | news:up******** ******@TK2MSFTN GP10.phx.gbl...
| | > Is there a way to load an XML schema into a dataset from a resource
or
| | > other object? I am using ReadXmlSchema(f ilename) and that works fine.
| | > However, I have many XSD files that I would rather not have to
| distribute
| | > with the application.
| | > I would like to be able to use a typed dataset since the schema is
| defined
| | > in advance.
| | > Is this possible?
| | > thanks
| | >
| |
| |
| |
|
|