Click or drag to resize
InfoDataSetTInfo Class
CMS 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: 9.0.0
public class InfoDataSet<TInfo> : DataSet, 
	IReadOnlyFlag, IEnumerable<TInfo>, IInfoDataSet, IEnumerable
where TInfo : BaseInfo

Type Parameters


The InfoDataSetTInfo type exposes the following members.

Protected fieldmItems
Items in the DataSet
Public propertyIsReadOnly
If true, the dataset is cached (not allowed to modify, must be cloned)
Public propertyItems
Items in the DataSet
Protected methodAddItems
Adds the items to the data set
Public methodClone
Clones the DataSet
Protected methodCreateEmptyDataSet
Creates the empty DataSet based on the current type
Public methodGetEnumerator
Gets the strongly typed enumerator for the collection
Public methodGetNewObject
Gets new instance of the object hosted in this DataSet
Protected methodGetObjectEnumerator
Gets the object enumerator for the collection
Protected methodNewCollection
Creates new collection of the objects
Extension Methods
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 MethodBatchTInfo
Returns input in batches of batchSize size.
(Defined by BaseExtensions.)
Public Extension MethodToDictionaryById
Converts the DataSet to a dictionary indexed by object ID
(Defined by DataExtensions.)
Public Extension MethodToHashSetTInfo
Converts the list of objects to a hash set of distinct values
(Defined by DataExtensions.)
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 MethodToListTInfo, TTo
Converts the given collection to a list of values
(Defined by BaseExtensions.)
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.)
See Also