我有一个 XML 文件,其中包含表列名称和类型的所有信息。如何在 SQL Server 2008 中创建该表。
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="Op" table="op" dynamic-update="true">
<id name="Id" column="id">
<generator class="native" />
</id>
<property name="AccountId" column="account_id" not-null="true"/>
<property name="Date" column="date" not-null="true" type="Timestamp"/>
<property name="Amount" column="amount" not-null="true"/>
<many-to-one name="AccountProp" column="account_id"
class="Account" not-null="true"/>
<joined-subclass name="PayOperation" table="pay_operations">
<key column="operation_id" />