示例#1
0
 /// <summary>
 /// Generator that uses the RDBMS native function to generate a GUID.
 /// The behavior is similar to the “sequence” generator. When a new
 /// object is saved NH run two queries: the first to retrieve the GUID
 /// value and the second to insert the entity using the Guid retrieved
 /// from the RDBMS. Your entity Id must be System.Guid and the SQLType
 /// will depend on the dialect (RAW(16) in Oracle, UniqueIdentifier in
 /// MsSQL for example).
 /// </summary>
 public void GuidNative()
 {
     if (!mapping.IsSpecified("Class"))
     {
         builder.GuidNative();
     }
 }
 /// <summary>
 /// Generator that uses the RDBMS native function to generate a GUID.
 /// The behavior is similar to the “sequence” generator. When a new
 /// object is saved NH run two queries: the first to retrieve the GUID
 /// value and the second to insert the entity using the Guid retrieved
 /// from the RDBMS. Your entity Id must be System.Guid and the SQLType
 /// will depend on the dialect (RAW(16) in Oracle, UniqueIdentifier in
 /// MsSQL for example).
 /// </summary>
 public void GuidNative()
 {
     builder.GuidNative();
 }