public bool IsRenamed(PgConstraint constraint)
 {
     if (this.Definition.Equals(constraint.Definition) &&
         this.TableName.Equals(constraint.TableName))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Adds primary key to the list of primary keys.
 /// </summary>
 public void Add(PgConstraint primaryKey)
 {
     this.PrimaryKeys.Add(primaryKey);
 }
 /// <summary>
 /// Adds a <see cref="PgConstraint"/> to the list of constraints.
 /// </summary>
 public void AddConstraint(PgConstraint constraint)
 {
     this.constraints.Add(constraint);
 }