0
我需要將StoreGeneratedPattern更新爲屬性節點的edmx文件programmaticaly中的「None」,基於某些criteara類似Name屬性包含「Code」值,將選擇這種Property元素的XPath是什麼?xpath讀取edmx文件EntityTypes
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="Model.Store" Provider="System.Data.CData.DynamicsCRM" ProviderManifestToken="DynamicsCRM" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityType Name="Account">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="varchar" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="AccountCategoryCode" Type="varchar" StoreGeneratedPattern="Computed" />
<Property Name="AccountClassificationCode" Type="varchar" StoreGeneratedPattern="Computed" />
<Property Name="AccountNumber" Type="varchar" />
這是工作!謝謝 – Ashish