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, 2019 • Updated: 06/23/19
Comment or report problem with topic