4 writes to MaxLength
System.Data.Common (4)
System\Data\DataColumn.cs (1)
1541clone.MaxLength = MaxLength;
System\Data\DataTable.cs (1)
482dc.MaxLength = info.GetInt32(string.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i));
System\Data\ProviderBase\SchemaMapping.cs (2)
961dataColumn.MaxLength = schemaRow.Size > 0 ? schemaRow.Size : -1; 995dataColumn.MaxLength = schemaRow.Size;
8 references to MaxLength
System.Data.Common (8)
System\Data\DataColumn.cs (4)
1541clone.MaxLength = MaxLength; 1677if (MaxLength < 0) 1691if (value != null && value != DBNull.Value && ((string)value).Length > MaxLength) 1701if (!DataStorage.IsObjectNull(value) && ((SqlString)value).Value.Length > MaxLength)
System\Data\DataSet.cs (1)
731if (column.MaxLength >= 0)
System\Data\DataTable.cs (2)
396info.AddValue(string.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i), Columns[i].MaxLength); 1341if (column.MaxLength >= 0)
System\Data\DataTableReader.cs (1)
803dr[ColumnSize] = dc.MaxLength;