Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ConstraintName

virtual string System.Data.Constraint.ConstraintName
getsetinherited

Definition at line 23 of file Constraint.cs.

24 {
25 get
26 {
27 return _name;
28 }
29 [param: AllowNull]
30 set
31 {
32 if (value == null)
33 {
34 value = string.Empty;
35 }
36 if (string.IsNullOrEmpty(value) && Table != null && InCollection)
37 {
38 throw ExceptionBuilder.NoConstraintName();
39 }
41 if (string.Compare(_name, value, ignoreCase: true, culture) != 0)
42 {
43 if (Table != null && InCollection)
44 {
46 if (_name.Length != 0)
47 {
49 }
50 }
51 _name = value;
52 }
53 else if (string.Compare(_name, value, ignoreCase: false, culture) != 0)
54 {
55 _name = value;
56 }
57 }
58 }
virtual bool InCollection
Definition Constraint.cs:80
ConstraintCollection Constraints
Definition DataTable.cs:332

Referenced by System.Data.ConstraintCollection.Add(), System.Data.ConstraintCollection.BaseAdd(), System.Data.ConstraintCollection.BaseRemove(), System.Data.DataColumnCollection.CanRemove(), System.Data.ForeignKeyConstraint.CascadeDelete(), System.Data.ForeignKeyConstraint.CascadeRollback(), System.Data.ForeignKeyConstraint.CascadeUpdate(), System.Data.ForeignKeyConstraint.CheckCanClearParentTable(), System.Data.Constraint.CheckConstraint(), System.Data.ForeignKeyConstraint.CheckConstraint(), System.Data.ForeignKeyConstraint.Clone(), System.Data.UniqueConstraint.Clone(), System.Data.ForeignKeyConstraint.Clone(), System.Data.UniqueConstraint.Clone(), System.Data.ConstraintConverter.ConvertTo(), System.Data.UniqueConstraint.Create(), System.Data.ForeignKeyConstraint.Create(), System.Data.ExceptionBuilder.ExpressionAndConstraint(), System.Data.ConstraintCollection.FinishInitConstraints(), System.Data.XmlTreeGen.GenerateConstraintNames(), System.Data.ConstraintCollection.InternalIndexOf(), System.Data.ForeignKeyConstraint.IsConstraintViolated(), System.Data.Merger.MergeConstraints(), System.Data.ExceptionBuilder.NeededForForeignKeyConstraint(), System.Data.ExceptionBuilder.RemoveParentRow(), System.Data.ExceptionBuilder.TableInConstraint(), and System.Data.Constraint.ToString().