Thursday, March 11, 2010
Working with Data
Minimize
After loading your business object with data from the database, there are several ways to interact with the data through EasyObjects.NET.


Method 1 - Strongly-typed properties
  1. Automatically generated for you in your business object.
  2. Matches the database type to a native language type.

Method 2 - The 's_' Properties

  1. Automatically generated for you in your business object.
  2. The property get accessor converts the column value from the native type to a string. A null value is automatically converted to an empty string.
  3. The property set accessor converts the incoming string value to the native type. An empty string is automatically converted to DBNull.Value.
  4. Ideal for binding to user interface elements, such as labels and textboxes.
  5. Dates are formatted using the StringFormat property of the base class.

Method 3 - MoveNext and Rewind

  1. Used to loop through all the rows stored in the business object.
  2. Rewind resets the enumerator back to the first row.
  3. Any filters applied are respected when changing the enumerator. 

Method 4 - Filter

  1. Works the same as the RowFilter property on ADO.NET's DataView.
  2. Can be used to temporarily hide rows stored in the business object.
  3. MoveNext will not iterate over filtered rows.

Method 5 - DefaultView

  1. Used for DataBinding operations with databound controls, such as the DataGrid or ComboBox.
Last Updated: 01/23/2007

Syndicate  Print  

Privacy Statement  |  Terms Of Use
© 2007 Noonan Consulting Inc.