<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : DomainModelTemplate</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : DomainModelTemplate</description>
  <pubDate>Wed, 13 May 2026 02:58:30 -700</pubDate>
  <lastBuildDate>Thu, 16 Aug 2012 16:07:50 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3578</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>DomainModelTemplate : THanks guys for all the inputs....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14204#14204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 16-Aug-2012 at 4:07pm<br /><br />THanks guys for all the inputs. I'm gonna take note of using Code Second and this find-replace approach :)]]>
   </description>
   <pubDate>Thu, 16 Aug 2012 16:07:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14204#14204</guid>
  </item> 
  <item>
   <title>DomainModelTemplate :   Originally posted by VonzkieSo...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14202#14202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 16-Aug-2012 at 10:09am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by Vonzkie</strong></em><br /><br /><div>So we have no choice but to do this manually in the designer..</div><div></td></tr></table></div><div><br></div><div>Don't forget that the designer is just a really fancy XML editor. &nbsp;I've had times where I need to make lots of very&nbsp;similar&nbsp;changes and it was pretty easy using just a text editor and find/replace. &nbsp;For example, in our app we have a column called Timestamp on almost every entity that is our concurrency column. &nbsp;In the EDMX, there is a row like this under all our entities:<table width="99%"><tr><td><pre class="BBcode">&lt;Property Name="Timestamp" Type="Binary" Nullable="false" MaxLength="8" FixedLength="true" /&gt;</pre></td></tr></table></div><div>To add concurrency to all those properties we just did a search for that text and replaced it with this: <table width="99%"><tr><td><pre class="BBcode">&lt;Property Name="Timestamp" Type="Binary" Nullable="false" MaxLength="8" FixedLength="true" annotation:StoreGeneratedPattern="Computed" ib10:ConcurrencyStrategy="Client" ConcurrencyMode="Fixed" /&gt;</pre></td></tr></table></div><div>In no time, we added concurrency to hundreds of entities. &nbsp;Of course, this is a one-time thing so for any new entities added to the model, you need to remember to set the concurrency. &nbsp;But at least it saves time the first time.&nbsp;</div><div><br></div><div>Note: Obviously you're case is a bit different - your column is called&nbsp;<span style=": rgb251, 251, 253; ">intConcurrencyID</span><span style=": rgb251, 251, 253; ">&nbsp;instead of Timestamp and you might want different options. &nbsp;But if you just setup one property how you want it to look, you can then see what XML got generated for it and use that as a basis for the search/replace.</span></div><div><span style=": rgb251, 251, 253; "><br></span></div><div><span style=": rgb251, 251, 253; ">Hope that helps!</span></div><div><span style=": rgb251, 251, 253; "><br></span></div><div><span style=": rgb251, 251, 253; ">-Stephen</span></div>]]>
   </description>
   <pubDate>Thu, 16 Aug 2012 10:09:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14202#14202</guid>
  </item> 
  <item>
   <title>DomainModelTemplate :   That&amp;#039;s the perfect time...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14200#14200</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 15-Aug-2012 at 10:10pm<br /><br />That's the perfect time to switch to Code-First :-) Kidding aside, yes you have a choice. Our T4 can generate Code-First style entity classes. We call this Code-Second.<div>&nbsp;</div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sec&#111;nd" target="_blank"><u><font color="#0066cc">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-second</font></u></a></div><div>&nbsp;</div><div>In fact that's how the Cocktail Reference Application evolved. It started with an edmx before DevForce had Code-First support, then got converted to Code-First using Code-Second and finally refactored into what you see today. There's work involved in converting to a clean Code-First model, but the T4 gives you a good head start.</div>]]>
   </description>
   <pubDate>Wed, 15 Aug 2012 22:10:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14200#14200</guid>
  </item> 
  <item>
   <title>DomainModelTemplate : Hi,Thanks for the reply.However...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14199#14199</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 15-Aug-2012 at 8:38pm<br /><br /><div>Hi,</div><div><br></div>Thanks for the reply.<div><br></div><div>However we can't just simply convert our models to code first since our application are already up and running in the market.</div><div>So we have no choice but to do this manually in the designer..</div><div><br></div><div>Regards,</div><div>Von</div>]]>
   </description>
   <pubDate>Wed, 15 Aug 2012 20:38:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14199#14199</guid>
  </item> 
  <item>
   <title>DomainModelTemplate :   Yes, that&amp;#039;s what I&amp;#039;m...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14198#14198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 15-Aug-2012 at 7:51pm<br /><br />Yes, that's what I'm saying. If you want to control domain model aspects such as concurrency detection from your code, you have to switch to Code-First. <div>&nbsp;</div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-first" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-first</a></div><div>&nbsp;</div><div>With Code-First you can take care of such things very elegantly in a base class that all your entities extend from. The following is an example of such a base class that you can find demonstrated in the Cocktail Reference Application.</div><div>&nbsp;</div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/cocktail-reference-applicati&#111;n" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-reference-application</a></div><div>&nbsp;</div><div><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">ProvideEntityAspect</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">DataContract</span>(IsReference&nbsp;=&nbsp;<span style="color: blue;">true</span>)&#093;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">RequiresAuthentication</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">abstract</span>&nbsp;<span style="color: blue;">class</span>&nbsp;<span style="color: rgb43, 145, 175;">EntityBase</span>&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">private</span>&nbsp;<span style="color: rgb43, 145, 175;">EntityFacts</span>&nbsp;_entityFacts; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">NotMapped</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: rgb43, 145, 175;">EntityFacts</span>&nbsp;EntityFacts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">get</span>&nbsp;{&nbsp;<span style="color: blue;">return</span>&nbsp;_entityFacts&nbsp;??&nbsp;(_entityFacts&nbsp;=&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: rgb43, 145, 175;">EntityFacts</span>(<span style="color: blue;">this</span>));&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">DataMember</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">ConcurrencyCheck</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">ConcurrencyStrategy</span>(<span style="color: rgb43, 145, 175;">ConcurrencyStrategy</span>.AutoIncrement)&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">int</span>&nbsp;RowVersion&nbsp;{&nbsp;<span style="color: blue;">get</span>;&nbsp;<span style="color: blue;">internal</span>&nbsp;<span style="color: blue;">set</span>;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">virtual</span>&nbsp;<span style="color: blue;">void</span>&nbsp;Validate(<span style="color: rgb43, 145, 175;">VerifierResultCollection</span>&nbsp;validationErrors)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">BeforeSet</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">internal</span>&nbsp;<span style="color: blue;">void</span>&nbsp;RemoveWhiteSpace(<span style="color: rgb43, 145, 175;">IEntityPropertySetInterceptorArgs</span>&nbsp;args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">if</span>&nbsp;(args.EntityProperty.DataType&nbsp;!=&nbsp;<span style="color: blue;">typeof</span>(<span style="color: blue;">string</span>)&nbsp;||&nbsp;args.Value&nbsp;==&nbsp;&nbsp;<span style="color: blue;">null</span>)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">return</span>; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;args.Value&nbsp;=&nbsp;((<span style="color: blue;">string</span>)&nbsp;args.Value).Trim();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;}</pre></div>]]>
   </description>
   <pubDate>Wed, 15 Aug 2012 19:51:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14198#14198</guid>
  </item> 
  <item>
   <title>DomainModelTemplate : Hi,So you mean to say there&amp;#039;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14197#14197</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 15-Aug-2012 at 7:18pm<br /><br />Hi,<div><br></div><div>So you mean to say there's no way in DomainModelTemplate or T4 Template that we can accomplish this?</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Wed, 15 Aug 2012 19:18:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14197#14197</guid>
  </item> 
  <item>
   <title>DomainModelTemplate :   Von,Concurrency detection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14192#14192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 15-Aug-2012 at 9:28am<br /><br />Von,<div>Concurrency detection is performed by EntityFramework not DevForce as described below. DevForce adds the ability to maintain the concurrency column for you, that's what the ConcurrencyStrategy does. But concurrency&nbsp;detection&nbsp;is performed by EF and it only does it if the EDM has the "Concurrency Mode" set to "Fixed".</div><div><br></div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/save-c&#111;ncurrency" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/save-concurrency</a></div><div><br></div><span style="font-size:10px"><br /><br />Edited by mgood - 15-Aug-2012 at 9:29am</span>]]>
   </description>
   <pubDate>Wed, 15 Aug 2012 09:28:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14192#14192</guid>
  </item> 
  <item>
   <title>DomainModelTemplate : I tried adding to my code and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14191#14191</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 15-Aug-2012 at 3:18am<br /><br />I tried adding to my code and I ended up doing this:<div><br></div><div><div>public MyTemplate(Microsoft.VisualStudio.TextTemplating.TextTransformation textTransformation)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: base(textTransformation) {}</div><div><br></div><div>&nbsp; &nbsp; <span ="Apple-tab-span" style="white-space:pre">	</span>protected override void WriteEntityDataPropertyAttributes(EdmPropertyWrapper property) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>if (property.Name == "intConcurrencyID") {</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>WriteAttribute("IbEm.ConcurrencyStrategy(IbEm.ConcurrencyStrategy.AutoIncrement)");</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>}</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; <span ="Apple-tab-span" style="white-space:pre">	</span>base.WriteEntityDataPropertyAttributes(property);</div><div>&nbsp; &nbsp; <span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp;protected override void WriteDataEntityPropertyDefinition(EdmPropertyWrapper property)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (property.Name == "intConcurrencyID")</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WriteLine(String.Format("/// &lt;summary&gt;The {0} &lt;see cref=\"T:IbEm.DataEntityProperty\"/&gt;. &lt;/summary&gt;", property.Name));</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var type = property.IsNullable ? "System.Nullable&lt;int&gt;" : "int";</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WriteLine(String.Format("public static readonly IbEm.DataEntityProperty&lt;{0}, {1}&gt; intConcurrencyID = new IbEm.DataEntityProperty&lt;{0}, {1}&gt;(\"intConcurrencyID\", {2}, false, IbEm.ConcurrencyStrategy.AutoIncrement, false, null);", property.ParentType.Name, type, property.IsNullable.ToString().ToLower()));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;base.WriteDataEntityPropertyDefinition(property);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>}</div></div><div><br></div><div><br></div><div>I was able to replace this part:</div><div><span style=": rgb251, 251, 253; ">public static readonly IbEm.DataEntityProperty&lt;tblSMSecurityListing, int&gt; intConcurrencyID = new IbEm.DataEntityProperty&lt;tblSMSecurityListing, int&gt;("intConcurrencyID", false, false, IbEm.ConcurrencyStrategy.None, false, null);</span></div><div><span style=": rgb251, 251, 253; "><br></span></div><div><span style=": rgb251, 251, 253; ">However, concurrency is not yet working and I really need to configure it manually in the EDM designer by setting the columns' ConcurrencyStrategy and ConcurrencyMode for it to work properly.</span></div><div><span style=": rgb251, 251, 253; "><br></span></div><div><span style=": rgb251, 251, 253; ">I thought that EntityManager just look on the designer.cs stuffs to perform concurrency checking but it seems that edmx csdl should be sync with the code behinf or I just missed something here?</span></div><div><span style=": rgb251, 251, 253; "><br></span></div><div><span style=": rgb251, 251, 253; ">Thanks,</span></div><div><span style=": rgb251, 251, 253; ">Von</span></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 15 Aug 2012 03:18:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14191#14191</guid>
  </item> 
  <item>
   <title>DomainModelTemplate : Hi,I have read about DomainModelTemplate...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14189#14189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3578<br /><strong>Posted:</strong> 15-Aug-2012 at 12:42am<br /><br />Hi,<div><br></div><div>I have read about DomainModelTemplate to customize code generation, however, i don't have resource materials to review.&nbsp;</div><div>Here's what I want to accomplished, all of our Entities have intConcurrencyID field, we want to automate the process using DomainModelTemplate to make the field ConcurrencyStrategy to AutoIncrement and the ConcurrencyMode to Fixed.</div><div><br></div><div>This is my first attempt to do it:</div><div><br></div><div><div>public class MyTemplate : DomainModelTemplate {</div><div><br></div><div>&nbsp; &nbsp; public MyTemplate(Microsoft.VisualStudio.TextTemplating.TextTransformation textTransformation)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: base(textTransformation) {}</div><div><br></div><div>&nbsp; &nbsp; protected override void WriteEntityDataPropertyAttributes(EdmPropertyWrapper property) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>if (property.Name == "intConcurrencyID") {</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>WriteAttribute("IbEm.ConcurrencyStrategy(IbEm.ConcurrencyStrategy.AutoIncrement)");</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>}</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; base.WriteEntityDataPropertyAttributes(property);</div><div>&nbsp; &nbsp; }</div><div>}</div></div><div><br></div><div>I successfully add attribute to my field but the problem is the&nbsp;PropertyMetadata,</div><div><br></div><div>public static readonly IbEm.DataEntityProperty&lt;tblSMSecurityListing, int&gt; intConcurrencyID = new IbEm.DataEntityProperty&lt;tblSMSecurityListing, int&gt;("intConcurrencyID", false, false, IbEm.ConcurrencyStrategy.None, false, null);</div><div><br></div><div>The ConcurrencyStrategy is still set to none and i don't know how to edit this using the DomainModelTemplate.</div><div><br></div><div>Can you help me on this and if you could provide me some tutorials on how to customize a Devforce model using that technique?</div><div><br></div><div>Thanks,</div><div>Von</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 15 Aug 2012 00:42:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3578&amp;PID=14189#14189</guid>
  </item> 
 </channel>
</rss>