2015-12-06 31 views
3

所有在我CodeFluent模型中的關鍵特性是ulong類型,必須通過數據庫自動遞增,例如:如何在CodeFluent模型中指定屬性的標識種子?

<cf:property name="Id" typeName="ulong" key="true" persistenceIdentity="true" cfps:hint="CLUSTERED" /> 

一個特定的關鍵屬性必須以價值10開始而不是1 哪有我指定了這個?

另一個問題:你有關於cfps命名空間的文檔嗎?

回答

0

使用最新版本的CodeFluent實體(> = 836)可以設置在屬性級別的身份種子和增量:

<cf:property name="Id" typeName="int" 
      cfps:identitySeed="10" 
      cfps:identityIncrement="2" 
      xmlns:cfps="http://www.softfluent.com/codefluent/producers.sqlserver/2005/1"/> 
相關問題