Click or drag to resize
ObjectDataSetTObject Class
Base object DataSet class. Enhancement to DataSet to provide strongly typed collection side-by-side with the data.
Inheritance Hierarchy

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public abstract class ObjectDataSet<TObject> : DataSet, 
	IReadOnlyFlag, IEnumerable<TObject>, IEnumerable
where TObject : class

Type Parameters

TObject

The ObjectDataSetTObject type exposes the following members.

Constructors
Methods
  NameDescription
Public methodGetEnumerator
Returns the strongly typed enumerator for this collection
Protected methodGetObjectEnumerator
Gets the object enumerator for the collection
Protected methodNewCollection
Creates new collection of the objects
Top
Extension Methods
  NameDescription
Public Extension MethodAsInfoType
Converts the DataSet to a strongly typed one
(Defined by DataExtensions.)
Public Extension MethodAsModifyable
Ensures that the given DataSet is not cached, copies the data if it is
(Defined by DataExtensions.)
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodBatchTObject
Returns input in batches of batchSize size.
(Defined by BaseExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDictionaryById
Converts the DataSet to a dictionary indexed by object ID
(Defined by DataExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToHashSetTObject
Converts the list of objects to a hash set of distinct values
(Defined by DataExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToJSON(Boolean)Overloaded.
Exports DataSet to JSON string.
(Defined by DataExtensions.)
Public Extension MethodToJSON(String, Boolean)Overloaded.
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Public Extension MethodToListTObject, TTo
Converts the given collection to a list of values
(Defined by BaseExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Public Extension MethodTryReadXml
Tries to read xml and load the data from it to the DataSet via standard .NET method. If the load fails, it removes all the forbidden whitespace charactes and tries it again.
(Defined by HelpersExtensions.)
Top
Fields
  NameDescription
Protected fieldmItems
Items in the DataSet
Top
Properties
  NameDescription
Public propertyIsReadOnly
If true, the dataset is cached (not allowed to modify, must be cloned)
Public propertyItems
Items in the DataSet
Top
See Also