Exemplo n.º 1
0
 private KeyAttribute(string name, int order, AutoIncrementMethodType autoIncrementMethodType, string generatorName)
 {
     AutoIncrementMethodType = autoIncrementMethodType;
     GeneratorName           = generatorName;
     Name  = name;
     Order = order;
 }
Exemplo n.º 2
0
 IEntityTypeConvertersBuilder <TEntity> IPrimaryKeyBuilder <TEntity> .AutoIncrement(
     AutoIncrementMethodType autoIncrementType, string generatoraName)
 {
     _autoIncrementType = autoIncrementType;
     _generatorName     = generatoraName;
     return(this);
 }
Exemplo n.º 3
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.AutoIncrementMethodType = autoIncrementMethodType;
     this.Name = name;
 }
Exemplo n.º 4
0
 /// <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)
 {
 }
Exemplo n.º 5
0
 IEntityTypeConvertersBuilder <TEntity> IPrimaryKeyBuilder <TEntity> .AutoIncrement(AutoIncrementMethodType autoIncrementType)
 {
     _autoIncrementType = autoIncrementType;
     return(this);
 }
Exemplo n.º 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)
 {
 }
Exemplo n.º 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)
 {
 }