예제 #1
0
 /// <summary>
 /// uses a sequence in DB2, PostgreSQL, Oracle or a generator in Firebird.
 /// The identifier returned by the database is converted to the property type
 /// using Convert.ChangeType. Any integral property type is thus supported.
 /// </summary>
 /// <param name="sequenceName"></param>
 /// <returns></returns>
 public void Sequence(string sequenceName)
 {
     if (!mapping.IsSpecified("Class"))
     {
         builder.Sequence(sequenceName);
     }
 }
예제 #2
0
 /// <summary>
 /// uses a sequence in DB2, PostgreSQL, Oracle or a generator in Firebird.
 /// The identifier returned by the database is converted to the property type
 /// using Convert.ChangeType. Any integral property type is thus supported.
 /// </summary>
 /// <param name="sequenceName"></param>
 /// <returns></returns>
 public void Sequence(string sequenceName)
 {
     builder.Sequence(sequenceName);
 }