Class DynamicDataReader

This class provides an easy way to use object.property syntax with a DataReader by wrapping a DataReader into a dynamic object.

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

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

Class Members

MemberDescription

Constructor

Pass in a loaded DataReader

TryGetMember

Returns a value from the current DataReader record 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)

TryInvokeMember

public virtual bool TryInvokeMember(InvokeMemberBinder binder,     Object[] args,     ref object result)

Requirements

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

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