<small id='asZgk'></small><noframes id='asZgk'>

  1. <legend id='asZgk'><style id='asZgk'><dir id='asZgk'><q id='asZgk'></q></dir></style></legend><tfoot id='asZgk'></tfoot>

      <i id='asZgk'><tr id='asZgk'><dt id='asZgk'><q id='asZgk'><span id='asZgk'><b id='asZgk'><form id='asZgk'><ins id='asZgk'></ins><ul id='asZgk'></ul><sub id='asZgk'></sub></form><legend id='asZgk'></legend><bdo id='asZgk'><pre id='asZgk'><center id='asZgk'></center></pre></bdo></b><th id='asZgk'></th></span></q></dt></tr></i><div id='asZgk'><tfoot id='asZgk'></tfoot><dl id='asZgk'><fieldset id='asZgk'></fieldset></dl></div>
      • <bdo id='asZgk'></bdo><ul id='asZgk'></ul>

    1. 从 MS SQL 数据库获取 XML 架构

      时间:2023-06-04

        <small id='DKDIf'></small><noframes id='DKDIf'>

            • <bdo id='DKDIf'></bdo><ul id='DKDIf'></ul>
              <legend id='DKDIf'><style id='DKDIf'><dir id='DKDIf'><q id='DKDIf'></q></dir></style></legend>
            • <tfoot id='DKDIf'></tfoot>
                <tbody id='DKDIf'></tbody>
              <i id='DKDIf'><tr id='DKDIf'><dt id='DKDIf'><q id='DKDIf'><span id='DKDIf'><b id='DKDIf'><form id='DKDIf'><ins id='DKDIf'></ins><ul id='DKDIf'></ul><sub id='DKDIf'></sub></form><legend id='DKDIf'></legend><bdo id='DKDIf'><pre id='DKDIf'><center id='DKDIf'></center></pre></bdo></b><th id='DKDIf'></th></span></q></dt></tr></i><div id='DKDIf'><tfoot id='DKDIf'></tfoot><dl id='DKDIf'><fieldset id='DKDIf'></fieldset></dl></div>

              • 本文介绍了从 MS SQL 数据库获取 XML 架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                是否可以使用 .Net 和 C# 以编程方式生成数据库的 XML 模式?我想研究 NDbUnit,但对于大型数据库,手动制作 Schema 真的不可行吗?

                Is it possible to generate a XML Schema of a Database programatically with .Net and C#? I want to look into NDbUnit but for big databases it would not really be feasible to make a Schema manually?

                推荐答案

                是否可以生成 XML来自数据库的架构?

                Is it possible to generate a XML Schema from a Database?

                确实,XMLSpy 可以从数据库生成 XML Schema.

                It sure is, XMLSpy can generate XML Schema from a database.

                还有另一种方式,虽然我从未测试过:

                There's another way, though I've never tested it:

                create table Person
                (
                Age int not NULL check( Age > 0) ,
                Height numeric(10,2) not NULL check( Height > 5),
                Gender varchar(5) not null check( Gender in ('M', 'F', 'O')),
                BirthDate datetime null,
                )
                
                DECLARE @schema xml
                SET @schema = (SELECT * FROM Person FOR XML AUTO, ELEMENTS, XMLSCHEMA('PersonSchema'))
                select @schema
                

                这篇关于从 MS SQL 数据库获取 XML 架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:开始使用 .NET 进行 XSD 验证 下一篇:通过单一方法针对 XSD 验证 XML

                相关文章

                最新文章

                    <tfoot id='ftBD7'></tfoot>
                  1. <i id='ftBD7'><tr id='ftBD7'><dt id='ftBD7'><q id='ftBD7'><span id='ftBD7'><b id='ftBD7'><form id='ftBD7'><ins id='ftBD7'></ins><ul id='ftBD7'></ul><sub id='ftBD7'></sub></form><legend id='ftBD7'></legend><bdo id='ftBD7'><pre id='ftBD7'><center id='ftBD7'></center></pre></bdo></b><th id='ftBD7'></th></span></q></dt></tr></i><div id='ftBD7'><tfoot id='ftBD7'></tfoot><dl id='ftBD7'><fieldset id='ftBD7'></fieldset></dl></div>
                      <bdo id='ftBD7'></bdo><ul id='ftBD7'></ul>

                  2. <small id='ftBD7'></small><noframes id='ftBD7'>

                  3. <legend id='ftBD7'><style id='ftBD7'><dir id='ftBD7'><q id='ftBD7'></q></dir></style></legend>