<SequentialGuid> Element

Sets the identity strategy of the enclosing element to retrieve a Guid from the underlying relational database system.

<PersistentField [fieldName="fieldName"]>

       <SequentialGuid/>

</PersistentField>

or

<PersistentField [fieldName="fieldName"]

[SequentialGuid="enabled"]

/>

enabled: If set to true, the field is initialised with a server-side generated Guid.

Remarks

·    The mapped property must be of type Guid.

·    This mapping feature is translated to <DefaultValue rawSqlInitializer="NEWSEQUENTIALID()"/> in MS SQL Server 2005.

·    With database platforms that do not support this feature, the fields’s client-side initialisation must be mapped using either <NativeIdGenerator/> or <NewGuid/>.

·    This mapping feature can only be applied to read only properties (i.e. can only have a getter).

Requirements

Editions:Professional, Evaluation, Express

Database Platforms:Microsoft SQL Server 2005

See Also

<PersistentField> Element | Object Identity Generation Strategies



<NativeIdGenerator> Element <NewGuid> Element