Class DynamicDataRow

This class provides an easy way to turn a DataRow into a Dynamic object that supports direct property access to the DataRow fields.

The class also automatically fixes up DbNull values (null into .NET and DbNUll to DataRow)

System.Object
  System.Dynamic.DynamicObject
    Westwind.Utilities.Data.DynamicDataRow
public class DynamicDataRow : DynamicObject

Class Members

MemberDescription

Constructor

Pass in a DataRow to work off

TryGetMember

Returns a value from a DataRow items array. If the field doesn't exist null is returned. DbNull values are turned into .NET nulls.

public virtual bool TryGetMember(GetMemberBinder binder,     ref object result)

TrySetMember

Property setter implementation tries to retrieve value from instance first then into this object

public virtual bool TrySetMember(SetMemberBinder binder,     object value)

Requirements

Namespace: Westwind.Utilities.Data
Assembly: westwind.utilities.dll

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic