Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Data.Common.DataStorage Class Referenceabstract

Public Member Functions

virtual object Aggregate (int[] recordNos, AggregateType kind)
 
object AggregateCount (int[] recordNos)
 
int Compare (int recordNo1, int recordNo2)
 
int CompareValueTo (int recordNo1, object value)
 
virtual object ConvertValue (object value)
 
void Copy (int recordNo1, int recordNo2)
 
object Get (int recordNo)
 
virtual int GetStringLength (int record)
 
virtual bool IsNull (int recordNo)
 
void Set (int recordNo, object value)
 
virtual void SetCapacity (int capacity)
 
object ConvertXmlToObject (string s)
 
virtual object ConvertXmlToObject (XmlReader xmlReader, XmlRootAttribute xmlAttrib)
 
string ConvertObjectToXml (object value)
 
virtual void ConvertObjectToXml (object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib)
 

Static Public Member Functions

static DataStorage CreateStorage (DataColumn column, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type dataType, StorageType typeCode)
 
static bool IsSqlType (Type dataType)
 
static bool IsObjectNull (object value)
 
static bool IsObjectSqlNull (object value)
 

Protected Member Functions

 DataStorage (DataColumn column, Type type, object defaultValue, StorageType storageType)
 
 DataStorage (DataColumn column, Type type, object defaultValue, object nullValue, StorageType storageType)
 
 DataStorage (DataColumn column, Type type, object defaultValue, object nullValue, bool isICloneable, StorageType storageType)
 
int CompareBits (int recordNo1, int recordNo2)
 
void CopyBits (int srcRecordNo, int dstRecordNo)
 
object GetBits (int recordNo)
 
bool HasValue (int recordNo)
 
void SetNullBit (int recordNo, bool flag)
 
object GetEmptyStorage (int recordCount)
 
void CopyValue (int record, object store, BitArray nullbits, int storeIndex)
 
void SetStorage (object store, BitArray nullbits)
 
void SetNullStorage (BitArray nullbits)
 

Package Functions

object GetEmptyStorageInternal (int recordCount)
 
void CopyValueInternal (int record, object store, BitArray nullbits, int storeIndex)
 
void SetStorageInternal (object store, BitArray nullbits)
 

Static Package Functions

static StorageType GetStorageType (Type dataType)
 
static Type GetTypeStorage (StorageType storageType)
 
static bool IsTypeCustomType (Type type)
 
static bool IsTypeCustomType (StorageType typeCode)
 
static bool IsSqlType (StorageType storageType)
 
static void ImplementsInterfaces (StorageType typeCode, Type dataType, out bool sqlType, out bool nullable, out bool xmlSerializable, out bool changeTracking, out bool revertibleChangeTracking)
 
static bool ImplementsINullableValue (StorageType typeCode, Type dataType)
 
static Type GetType (string value)
 
static string GetQualifiedName (Type type)
 

Package Attributes

readonly DataColumn _column
 
readonly DataTable _table
 
readonly Type _dataType
 
readonly StorageType _storageTypeCode
 
readonly object _nullValue
 
readonly bool _isCloneable
 
readonly bool _isCustomDefinedType
 
readonly bool _isStringType
 
readonly bool _isValueType
 

Properties

DataSetDateTime DateTimeMode [get]
 
IFormatProvider FormatProvider [get]
 

Static Private Member Functions

static bool DetermineIfValueType (StorageType typeCode, Type dataType)
 
static Tuple< bool, bool, bool, boolInspectTypeForInterfaces (Type dataType)
 

Private Attributes

BitArray _dbNullBits
 
readonly object _defaultValue
 

Static Private Attributes

static readonly Type[] s_storageClassType
 
static readonly Func< Type, Tuple< bool, bool, bool, bool > > s_inspectTypeForInterfaces = InspectTypeForInterfaces
 
static readonly ConcurrentDictionary< Type, Tuple< bool, bool, bool, bool > > s_typeImplementsInterface = new ConcurrentDictionary<Type, Tuple<bool, bool, bool, bool>>()
 

Detailed Description

Definition at line 12 of file DataStorage.cs.


The documentation for this class was generated from the following file: