예제 #1
0
 public ICreateConstraintOnTableSyntax PrimaryKey(string primaryKeyName)
 {
     var expression = new CreateConstraintExpression(ConstraintType.PrimaryKey);
     expression.Constraint.ConstraintName = primaryKeyName;
     _context.Expressions.Add(expression);
     return new CreateConstraintBuilder(expression);
 }
예제 #2
0
 public ICreateConstraintOnTableSyntax UniqueConstraint(string constraintName)
 {
     var expression = new CreateConstraintExpression(ConstraintType.Unique);
     expression.Constraint.ConstraintName = constraintName;
     _context.Expressions.Add(expression);
     return new CreateConstraintBuilder(expression);
 }
예제 #3
0
 public ICreateConstraintOnTableSyntax PrimaryKey()
 {
     var expression = new CreateConstraintExpression(ConstraintType.PrimaryKey);
     _context.Expressions.Add(expression);
     return new CreateConstraintBuilder(expression);
 }