-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSqlDefaultConstraint.cs
More file actions
39 lines (34 loc) · 1.21 KB
/
SqlDefaultConstraint.cs
File metadata and controls
39 lines (34 loc) · 1.21 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
//-----------------------------------------------------------------------
// <copyright file="SqlDefaultConstraint.cs" company="P.O.S Informatique">
// Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace PosInformatique.Testing.Databases
{
/// <summary>
/// Represents a default constraint of a <see cref="SqlColumn" />.
/// </summary>
public class SqlDefaultConstraint : SqlObject
{
internal SqlDefaultConstraint(string name, string expression)
{
this.Name = name;
this.Expression = expression;
}
/// <summary>
/// Gets the name of the default constraint.
/// </summary>
public string Name { get; }
/// <summary>
/// Gets the expression of the default constraint.
/// </summary>
public string Expression { get; }
/// <inheritdoc />
public override TResult Accept<TResult>(ISqlObjectVisitor<TResult> visitor) => visitor.Visit(this);
/// <inheritdoc cref="Name"/>
public override string ToString()
{
return this.Name;
}
}
}