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