コード例 #1
0
 private KeyAttribute(string name, int order, AutoIncrementMethodType autoIncrementMethodType, string generatorName)
 {
     AutoIncrementMethodType = autoIncrementMethodType;
     GeneratorName           = generatorName;
     Name  = name;
     Order = order;
 }
コード例 #2
0
 IEntityTypeConvertersBuilder <TEntity> IPrimaryKeyBuilder <TEntity> .AutoIncrement(
     AutoIncrementMethodType autoIncrementType, string generatoraName)
 {
     _autoIncrementType = autoIncrementType;
     _generatorName     = generatoraName;
     return(this);
 }
コード例 #3
0
ファイル: KeyAttribute.cs プロジェクト: sincoda/Kros.Libs
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyAttribute"/> class.
 /// </summary>
 /// <param name="name">The key name.</param>
 /// <param name="autoIncrementMethodType">Type of primary key auto increment method.</param>
 public KeyAttribute(string name, AutoIncrementMethodType autoIncrementMethodType)
 {
     this.AutoIncrementMethodType = autoIncrementMethodType;
     this.Name = name;
 }
コード例 #4
0
ファイル: KeyAttribute.cs プロジェクト: sincoda/Kros.Libs
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyAttribute"/> class.
 /// </summary>
 /// <param name="autoIncrementMethodType">Type of primary key auto increment method.</param>
 public KeyAttribute(AutoIncrementMethodType autoIncrementMethodType)
     : this(null, autoIncrementMethodType)
 {
 }
コード例 #5
0
 IEntityTypeConvertersBuilder <TEntity> IPrimaryKeyBuilder <TEntity> .AutoIncrement(AutoIncrementMethodType autoIncrementType)
 {
     _autoIncrementType = autoIncrementType;
     return(this);
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyAttribute"/> class.
 /// </summary>
 /// <param name="name">The key name.</param>
 /// <param name="autoIncrementMethodType">Type of primary key auto increment method.</param>
 public KeyAttribute(string name, AutoIncrementMethodType autoIncrementMethodType)
     : this(name, 0, autoIncrementMethodType)
 {
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyAttribute"/> class.
 /// </summary>
 /// <param name="name">The key name.</param>
 /// <param name="autoIncrementMethodType">Type of primary key auto increment method.</param>
 /// <param name="generatorName">Name of the value generator. If not set, table name will be used.</param>
 public KeyAttribute(string name, AutoIncrementMethodType autoIncrementMethodType, string generatorName)
     : this(name, 0, autoIncrementMethodType, generatorName)
 {
 }