System.Data.ConstraintCollection.AutoGenerated C# (CSharp) Method

AutoGenerated() private method

private AutoGenerated ( Constraint constraint ) : bool
constraint Constraint
return bool
        private bool AutoGenerated(Constraint constraint)
        {
            ForeignKeyConstraint fk = (constraint as ForeignKeyConstraint);
            if (null != fk)
            {
                return XmlTreeGen.AutoGenerated(fk, false);
            }
            else
            {
                UniqueConstraint unique = (UniqueConstraint)constraint;
                return XmlTreeGen.AutoGenerated(unique);
            }
        }