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
SystemObject
  System.ComponentModelMarshalByValueComponent
    System.DataDataSet
      CMS.DataEngineInfoDataSetTInfo

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public class InfoDataSet<TInfo> : DataSet, 
	IReadOnlyFlag, IEnumerable<TInfo>, IEnumerable, IInfoDataSet
where TInfo : BaseInfo

Type Parameters

TInfo

The InfoDataSetTInfo type exposes the following members.

Constructors
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
Methods
  NameDescription
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
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 MethodBatchTInfo
Returns input in batches of batchSize size.
(Defined by BaseExtensions.)
Public Extension MethodToContactList
Converts ContactInfoDataSet into list.
(Defined by ContactDataSetExtensions.)
Public Extension MethodToDictionaryById
Converts the DataSet to a dictionary indexed by object ID
(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 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 characters and tries it again.
(Defined by HelpersExtensions.)
Top
See Also