Your best source of information and news about drivers , windows vista and winvista on the internet 情報およびドライバについてのニュースのあなたの最高の関係者は、 Windows Vistawinvistaは、インターネット上の

Vista ARTICLES Vistaの製品 TOP 50トップ50 Spyware Virusウイルススパイウェア Vista SOFT Vistaのソフト Vista HELP Vistaのヘルプ

Generate Typed Dataset from an XSD file型指定されたデータセットは、 XSDファイルから生成



Visual Studio 2005’s Typed DataSet is pretty cool. Visual Studio 2005のの型指定されたデータセットはかなりクールだ。 It gives you good control of what the relations should be and it pretty much mimics a table in the database.それはあなたの関係がどうあるべきかを十分に制御できるようにしている非常に多く、データベース内のテーブルを模倣している。 I love it.素晴らしいですね。 But one thing I hate about that is when you serialize your Typed DataSet your XML looks not up to the mark of what you want.しかし、私は、一つのことを嫌いする際に型指定されたデータセットをXMLのシリアライズではないが、あなたが望むのマークに見えます。

It does serves the purpose but it has all sorts of primary key/foreign key references that are serialized into the XML that at times we don’t want.ここでの処理は目的が、主キーのすべての種類の/は、 XMLにシリアル化さ外部キーを参照している時にはしたくない。 Rather what we want is a nested XML structure that meaningfully makes sense if you wear that XML glass.むしろ私たちがしたい場合に摩耗が理にかなっている意味は、ネストされたXML構造は、 XMLのガラス。

Adding an XSD file to your project won’t help right away as VSNET 2005 doesn’t directly generate dataset (.Designer.cs file) out of it.すぐに直接VSNET 2005年)のうち、データセット( 。 Designer.csファイルを生成していない役には立たないとは、 XSDファイルをプロジェクトに追加します。 But, to our rescue, there is a work around to get VSNET 2005 generate typed-dataset from an XSD file.しかし、我々の救助には、周りに仕事を得ることですVSNET 2005型付き生成をXSDファイルからデータセット。 Here is what you should do,ここで何をすべきかです。

  • Select the XSD file you want VSNET 2005 to generate typed-dataset from選択された場合は、 XSD VSNET 2005年からデータセットを生成するために入力するファイル
  • Go into the XSD file’s propertiesは、 XSDファイルのプロパティに移動
  • Set the "Build Action" to "Content"セットは、 "ビルドアクション"に、 "コンテンツ"
  • Set the "Custom Tool" to point to "MSDataSetGenerator"セットは、 "カスタムツール"に" " MSDataSetGeneratorポイントに

And that’s it.そして、これで終わりです。 The next time you save the XSD file you should be able to see the dataset file, .Designer.cs (or .vb) file, for your XSD.あなたは、 XSDファイルを参照する場合は、データセットファイルを保存できるようになります次回、 。 Designer.csお客様のXSD (または。 VBの)ファイル、 。

Visit 訪問 DemoGeek.com DemoGeek.com for amazingly detailed quality articles on Computer, Internet, Browsers, Software, Programming and much more. コンピュータインターネットブラウザ、ソフトウェア、プログラミングと驚くほど詳細な品質、記事をオンタリオています。

Popularity: 1%人気: 1 %


Written by askars. askarsが記されている。 Read more great feeds at is source フィードを読んでさらにお得なソースです WEBSITE WEBサイト
no comments コメントはありません .
Read more articles on の詳細記事を読む .NET Framework 。 NET Frameworkの and および otherSoftware otherSoftware and および .NET Framework 2.0 。 NET Framework 2.0を and および howto 手引き and および Visual Studio のVisual Studio and および .Net ネット and および Tips and Tricks ヒントとコツ .

Related articles関連記事

No commentsコメントなし

There are still no comments on this article.まだこの記事でのコメントはありません。

Leave your comment...あなたのコメントを残す...

If you want to leave your comment on this article, simply fill out the next form:この記事にコメントを残しするには、単に次のフォームに記入してください:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .これらのXHTMLタグ: href=""使用することができますtitle="">の<a <abbr title=""> <acronym title=""> <b>ダウンロード<blockquote cite="">の<code>の<em> <私> <strike> <strong> 。