-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSqlCheckConstraint.cs
39 lines (34 loc) · 1.16 KB
/
SqlCheckConstraint.cs
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
//-----------------------------------------------------------------------
// <copyright file="SqlCheckConstraint.cs" company="P.O.S Informatique">
// Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace PosInformatique.Testing.Databases
{
/// <summary>
/// Represents a check constraint in SQL table.
/// </summary>
public sealed class SqlCheckConstraint : SqlObject
{
internal SqlCheckConstraint(string name, string code)
{
this.Name = name;
this.Code = code;
}
/// <summary>
/// Gets the name of the check constraint type.
/// </summary>
public string Name { get; }
/// <summary>
/// Gets the code of the check constraint.
/// </summary>
public string Code { get; }
/// <inheritdoc />
public override TResult Accept<TResult>(ISqlObjectVisitor<TResult> visitor) => visitor.Visit(this);
/// <inheritdoc cref="Name"/>
public override string ToString()
{
return this.Name;
}
}
}