<NewGuid> Element

Sets the identity strategy of the enclosing element to generate a Guid on the client side.

<PersistentField [fieldName="fieldName"]>




<PersistentField [fieldName="fieldName"]



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


·    The mapped property must be of type Guid.

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


Editions:Professional, Evaluation, Express

Database Platforms:Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2, IBM DB2

See Also

<PersistentField> Element | Object Identity Generation Strategies

<SequentialGuid> Element