5 writes to MaxLength
System.Data (4)
fx\src\data\System\Data\DataColumn.cs (1)
1499
clone.
MaxLength
= MaxLength;
fx\src\data\System\Data\DataTable.cs (1)
445
dc.
MaxLength
= info.GetInt32(String.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i));
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (2)
803
dataColumn.
MaxLength
= schemaRow.Size>0?schemaRow.Size:-1;
831
dataColumn.
MaxLength
= schemaRow.Size;
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
120
column.
MaxLength
= -1;
11 references to MaxLength
System.Data (11)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (1)
639
long maxLength = AdjustMaxLength(dbType, column.
MaxLength
);
fx\src\data\System\Data\CodeGen\datacache.cs (2)
667
if (column.
MaxLength
!= -1) {
669
tableInitClass.Statements.Add(Assign(Property(codeField, "MaxLength"), Primitive(column.
MaxLength
)));
fx\src\data\System\Data\DataColumn.cs (4)
1499
clone.MaxLength =
MaxLength
;
1625
if (
MaxLength
< 0)
1636
if (value != null && value != DBNull.Value && ((string)value).Length >
MaxLength
) {
1646
if (!DataStorage.IsObjectNull(value) && ((SqlString)value).Value.Length >
MaxLength
) {
fx\src\data\System\Data\DataSet.cs (1)
622
if (column.
MaxLength
>= 0) {
fx\src\data\System\Data\DataTable.cs (2)
362
info.AddValue(String.Format(formatProvider, "DataTable.DataColumn_{0}.MaxLength", i), Columns[i].
MaxLength
);
1244
if (column.
MaxLength
>= 0) {
fx\src\data\System\Data\DataTableReader.cs (1)
685
dr[ColumnSize] = dc.
MaxLength
;