You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
544 B
30 lines
544 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Patcher.DB
|
|
{
|
|
class CheckConstraint : AbstractConstraint
|
|
{
|
|
|
|
public override void Accept(IVisitor visitor)
|
|
{
|
|
visitor.Visit(this);
|
|
}
|
|
|
|
public override T Accept<T>(IVisitor<T> visitor)
|
|
{
|
|
return visitor.Visit(this);
|
|
}
|
|
|
|
public readonly string condition;
|
|
|
|
public CheckConstraint(string table, string name, string condition)
|
|
: base(table, name)
|
|
{
|
|
this.condition = condition;
|
|
}
|
|
|
|
}
|
|
}
|
|
|