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

◆ AllowDBNull

bool System.Data.DataColumn.AllowDBNull
getset

Definition at line 93 of file DataColumn.cs.

94 {
95 get
96 {
97 return _allowNull;
98 }
99 set
100 {
101 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataColumn.set_AllowDBNull|API> {0}, {1}", ObjectID, value);
102 try
103 {
104 if (_allowNull != value)
105 {
106 if (_table != null && !value && _table.EnforceConstraints)
107 {
109 }
111 }
112 }
113 finally
114 {
115 DataCommonEventSource.Log.ExitScope(scopeId);
116 }
117 }
118 }

Referenced by System.Data.DataColumn.CheckNullable(), and System.Data.DataTableReader.GetSchemaTableFromDataTable().