-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSqlColumnIdentity.cs
More file actions
42 lines (38 loc) · 1.42 KB
/
SqlColumnIdentity.cs
File metadata and controls
42 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//-----------------------------------------------------------------------
// <copyright file="SqlColumnIdentity.cs" company="P.O.S Informatique">
// Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace PosInformatique.Testing.Databases
{
/// <summary>
/// Represents the <see cref="SqlColumn.Identity"/> information when
/// a <see cref="SqlColumn"/> is an <c>IDENTITY</c> column.
/// </summary>
public class SqlColumnIdentity
{
/// <summary>
/// Initializes a new instance of the <see cref="SqlColumnIdentity"/> class.
/// </summary>
/// <param name="seed">Seed of the <c>IDENTITY</c> column.</param>
/// <param name="increment">Increment of the <c>IDENTITY</c> column.</param>
public SqlColumnIdentity(int seed, int increment)
{
this.Seed = seed;
this.Increment = increment;
}
/// <summary>
/// Gets the seed of the <c>IDENTITY</c> column.
/// </summary>
public int Seed { get; }
/// <summary>
/// Gets the increment of the <c>IDENTITY</c> column.
/// </summary>
public int Increment { get; }
/// <inheritdoc />
public override string ToString()
{
return $"(Seed: {this.Seed}, Increment: {this.Increment})";
}
}
}