DataModelHelper

Provides helper methods to work with data models.

Namespace:
Inetdev.Data
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
No
Inherits from:
System.Object

Constructors

DataModelHelper

Default constructor

Signature:
public Void DataModelHelper()

Methods

BuildModel

Builds an IDataModel of and fill the data properties with the information gathered from reader, executing reader.Read() each time it is called.

Signature:
public BuildModel<T>(reader, parent)
Returns

An IDataModel or a default of when there is no more data.

Parameters
Name Type Summary
reader IDataReader An opened IDataReader to get the data from.
parent IDataModel An optional IDataModel of the parent object of the model beeing build.
Exceptions
Type Summary
ArgumentNullException Thrown when reader is null.
InvalidOperationException Thrown when the reader is closed.

In this document