19[DesignTimeVisible(
false)]
21[
Editor(
"Microsoft.VSDesigner.Data.Design.DataColumnEditor, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
240 value =
string.Empty;
265 value =
string.Empty;
271 if (
value.Length == 0)
357 value =
string.Empty;
603 value =
string.Empty;
608 if (
value.Length > 0)
935 internal string? XmlDataType {
get;
set; } =
string.Empty;
947 if (
value !=
null &&
value.CanHaveMaxLength())
1033 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"This is safe because type is string and expression is null.")]
1039 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"This is safe because type is string and expression is null.")]
1045 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"Expression is null and `dataType` is marked appropriately.")]
1051 [
RequiresUnreferencedCode(
"Members from serialized types or types used in expressions may be trimmed if not referenced directly.")]
1057 [
RequiresUnreferencedCode(
"Members from serialized types or types used in expressions may be trimmed if not referenced directly.")]
1062 if (dataType ==
null)
1078 if (!
string.IsNullOrEmpty(expr))
1104 object value =
this[
row.GetRecordFromVersion(version)];
1477 bool result =
false;
1495 row.SetColumnError(
this,
text);
1506 row.SetColumnError(
this,
text);
1517 for (
int i = 0; i <
rows.Length; i++)
1521 rows[i].SetColumnError(
this,
text);
1536 this.PropertyChanging?.Invoke(
this,
pcevent);
1664 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"User has already got warning when creating original column.")]
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static readonly DBNull Value
void SetCurrentAndIncrement(object value)
void SetCurrent(object value, IFormatProvider formatProvider)
AutoIncrementValue Clone()
static bool IsCatchableExceptionType(Exception e)
static object ConvertFromBigInteger(BigInteger value, Type type, IFormatProvider formatProvider)
static BigInteger ConvertToBigInteger(object value, IFormatProvider formatProvider)
static bool IsObjectNull(object value)
void Set(int recordNo, object value)
static void ImplementsInterfaces(StorageType typeCode, Type dataType, out bool sqlType, out bool nullable, out bool xmlSerializable, out bool changeTracking, out bool revertibleChangeTracking)
virtual object ConvertValue(object value)
readonly bool _isCustomDefinedType
static bool ImplementsINullableValue(StorageType typeCode, Type dataType)
int CompareValueTo(int recordNo1, object value)
virtual void SetCapacity(int capacity)
static DataStorage CreateStorage(DataColumn column, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type dataType, StorageType typeCode)
readonly bool _isValueType
void CopyValueInternal(int record, object store, BitArray nullbits, int storeIndex)
string ConvertObjectToXml(object value)
void SetStorageInternal(object store, BitArray nullbits)
virtual int GetStringLength(int record)
object ConvertXmlToObject(string s)
readonly object _nullValue
static bool IsTypeCustomType(Type type)
virtual object Aggregate(int[] recordNos, AggregateType kind)
virtual bool IsNull(int recordNo)
static bool IsObjectSqlNull(object value)
int Compare(int recordNo1, int recordNo2)
object GetEmptyStorageInternal(int recordCount)
static StorageType GetStorageType(Type dataType)
void Copy(int recordNo1, int recordNo2)
static object ChangeTypeForDefaultValue(object value, Type type, IFormatProvider formatProvider)
static SqlString ConvertToSqlString(object value)
static object GetStaticNullForUdtType([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type type)
UniqueConstraint FindKeyConstraint(DataColumn[] columns)
bool CanRemove(Constraint constraint)
void Remove(Constraint constraint)
void Add(Constraint constraint)
void MoveTo(DataColumn column, int newPosition)
void OnColumnPropertyChanged(CollectionChangeEventArgs ccevent)
void RegisterColumnName(string name, DataColumn column)
void UnregisterName(string name)
DataStorage InsureStorage()
DataSetDateTime _dateTimeMode
void Copy(int srcRecordNo, int dstRecordNo)
void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib)
void SetMaxLengthSimpleType()
DataColumn(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type dataType)
object ConvertXmlToObject(string s)
void InternalUnique(bool value)
bool IsValueCustomTypeInstance(object value)
int CompareValueTo(int record1, object value)
void FinishInitInProgress()
DataRow GetDataRow(int index)
AutoIncrementValue _autoInc
void SetOrdinal(int ordinal)
bool _implementsINullable
object ConvertValue(object value)
DataColumn(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type dataType, string? expr)
static bool IsAutoIncrementType(Type dataType)
override string ToString()
void SetTable(DataTable table)
string ConvertObjectToXml(object value)
DataColumn(string? columnName)
void SetOrdinalInternal(int ordinal)
void CheckColumnConstraint(DataRow row, DataRowAction action)
void AddDependentColumn(DataColumn expressionColumn)
object GetEmptyColumnStore(int recordCount)
object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute xmlAttrib)
object GetAggregateValue(int[] records, AggregateType kind)
void CheckNullable(DataRow row)
bool ImplementsIChangeTracking
int Compare(int record1, int record2)
virtual MappingType ColumnMapping
PropertyChangedEventHandler? PropertyChanging
void CheckMaxLength(DataRow dr)
void RemoveDependentColumn(DataColumn expressionColumn)
void UpdateColumnType([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type type, StorageType typeCode)
bool IsNotAllowDBNullViolated()
DataColumn(string? columnName, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type dataType, string? expr, MappingType type)
bool IsMaxLengthViolated()
void InitializeRecord(int record)
bool ImplementsIRevertibleChangeTracking
bool _implementsIRevertibleChangeTracking
PropertyCollection ExtendedProperties
DataExpression _expression
bool _implementsIXMLSerializable
object AutoIncrementCurrent
void RaisePropertyChanging(string name)
void FreeRecord(int record)
AutoIncrementValue AutoInc
bool ImplementsIXMLSerializable
PropertyCollection _extendedProperties
void SetValue(int record, object value)
MappingType _columnMapping
void CopyValueIntoStore(int record, object store, BitArray nullbits, int storeIndex)
DataSetDateTime DateTimeMode
DataExpression? DataExpression
void CopyExpressionFrom(DataColumn source)
List< DataColumn > _dependentColumns
string GetColumnValueAsString(DataRow row, DataRowVersion version)
int GetStringLength(int record)
bool _implementsIChangeTracking
void HandleDependentColumnList(DataExpression oldExpression, DataExpression newExpression)
virtual void OnPropertyChanging(PropertyChangedEventArgs pcevent)
void SetCapacity(int capacity)
string _encodedColumnName
bool CompareValueTo(int record1, object value, bool checkType)
void SetStorage(object store, BitArray nullbits)
static int s_objectTypeCount
static readonly DataCommonEventSource Log
void Bind(DataTable table)
void EvaluateExpressions()
IFormatProvider FormatProvider
void EvaluateDependentExpressions(DataColumn column)
void RemoveDependentColumn(DataColumn expressionColumn)
void AddDependentColumn(DataColumn expressionColumn)
ConstraintCollection Constraints
void ResetInternalIndexes(DataColumn column)
DataColumnCollection Columns
bool UpdatingCurrent(DataRow row, DataRowAction action)
DataRelationCollection ParentRelations
Index GetIndex(IndexField[] indexDesc)
readonly RecordManager _recordManager
DataRelationCollection ChildRelations
static Exception CantChangeDateTimeMode(DataSetDateTime oldValue, DataSetDateTime newValue)
static Exception DefaultValueDataType(string column, Type defaultType, Type columnType, Exception inner)
static string MaxLengthViolationText(string columnName)
static Exception ColumnTypeNotSupported()
static Exception CannotSetSimpleContentType(string columnName, Type type)
static Exception ExpressionCircular()
static Exception AutoIncrementAndExpression()
static Exception ColumnsTypeMismatch()
static Exception ReadOnlyAndExpression()
static Exception ExpressionAndConstraint(DataColumn column, Constraint constraint)
static Exception CannotSetMaxLength(DataColumn column, int value)
static Exception DefaultValueColumnDataType(string column, Type defaultType, Type columnType, Exception inner)
static Exception NonUniqueValues(string column)
static Exception DefaultValueAndAutoIncrement()
static Exception CantChangeDataType()
static Exception NullKeyValues(string column)
static string NotAllowDBNullViolationText(string columnName)
static Exception NullDataType()
static Exception HasToBeStringType(DataColumn column)
static Exception AutoIncrementAndDefaultValue()
static Exception LongerThanMaxLength(DataColumn column)
static Exception NullValues(string column)
static Exception CannotSetMaxLength2(DataColumn column)
static Exception CannotSetSimpleContent(string columnName, Type type)
static Exception SetFailed(object value, DataColumn column, Type type, Exception innerException)
static Exception ColumnNotInAnyTable()
static Exception CannotAddColumn3()
static Exception AutoIncrementCannotSetIfHasData(string typeName)
static Exception ExpressionAndReadOnly()
static Exception ColumnNameRequired()
static Exception InvalidPrefix(string name)
static Exception CannotSetDateTimeModeForNonDateTimeColumns()
static Exception TraceExceptionForCapture(Exception e)
static Exception ExpressionAndUnique()
static Exception CannotAddColumn4(string column)
static Exception UniqueAndExpression()
static Exception TraceExceptionWithoutRethrow(Exception e)
static Exception CannotChangeNamespace(string columnName)
static Exception InvalidDateTimeMode(DataSetDateTime mode)
static Exception ArgumentNull(string paramName)
static Exception UnsupportedDataType(Type type)
bool IsKeyInIndex(object key)
virtual IEnumerator GetEnumerator()
static SimpleType CreateLimitedStringType(int length)
void ConvertToAnnonymousSimpleType()
static SimpleType CreateSimpleType(StorageType typeCode, Type type)
static void EnsureTypeIsAllowed(Type type, TypeLimiter capturedLimiter=null)
static void SuppressFinalize(object obj)
static CultureInfo CurrentCulture
static byte Max(byte val1, byte val2)
static int Increment(ref int location)
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
PropertyInfo? GetProperty(string name)
static ? string EncodeName(string? name)
static ? string DecodeName(string? name)
static ? string EncodeLocalName(string? name)
DesignerSerializationVisibility
DynamicallyAccessedMemberTypes