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

◆ DataColumn() [5/5]

System.Data.DataColumn.DataColumn ( string? columnName,
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)] Type dataType,
string? expr,
MappingType type )
inline

Definition at line 1058 of file DataColumn.cs.

1059 {
1060 GC.SuppressFinalize(this);
1061 DataCommonEventSource.Log.Trace("<ds.DataColumn.DataColumn|API> {0}, columnName='{1}', expr='{2}', type={3}", ObjectID, columnName, expr, type);
1062 if (dataType == null)
1063 {
1064 throw ExceptionBuilder.ArgumentNull("dataType");
1065 }
1068 {
1069 throw ExceptionBuilder.ColumnTypeNotSupported();
1070 }
1071 _columnName = columnName ?? string.Empty;
1073 if (simpleType != null)
1074 {
1076 }
1077 UpdateColumnType(dataType, storageType);
1078 if (!string.IsNullOrEmpty(expr))
1079 {
1080 Expression = expr;
1081 }
1083 }
static bool ImplementsINullableValue(StorageType typeCode, Type dataType)
static StorageType GetStorageType(Type dataType)
void UpdateColumnType([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type type, StorageType typeCode)
MappingType _columnMapping
Definition DataColumn.cs:54
static SimpleType CreateSimpleType(StorageType typeCode, Type type)

References System.Data.DataColumn._columnMapping, System.Data.DataColumn._columnName, System.Data.ExceptionBuilder.ArgumentNull(), System.Data.ExceptionBuilder.ColumnTypeNotSupported(), System.Data.SimpleType.CreateSimpleType(), System.Xml.Dictionary, System.Data.DataColumn.Expression, System.Data.Common.DataStorage.GetStorageType(), System.Data.Common.DataStorage.ImplementsINullableValue(), System.Data.DataCommonEventSource.Log, System.Data.DataColumn.ObjectID, System.GC.SuppressFinalize(), System.type, and System.Data.DataColumn.UpdateColumnType().