|
XElement 为
<EntityType Name="Users" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
<Documentation>
<Summary>用户表</Summary>
</Documentation>
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Guid" Nullable="false" />
<Property Name="Name" Type="String" Nullable="false" MaxLength="20" Unicode="false" FixedLength="false" />
<Property Name="Pwd" Type="String" Nullable="false" MaxLength="20" Unicode="false" FixedLength="false" />
<Property Name="E_Mail" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
</EntityType>
我直接用Elements或者 Descendants 查找name=Property 为什么都取不到 Property的值呢,求教楼主
|
|