C# Class Massive.ObjectExtensions

Exibir arquivo Open project: johnmbaughman/SQLiteConverter

Public Methods

Method Description
AddParam ( this cmd, object item ) : void

Extension for adding single parameter

AddParams ( this cmd ) : void

Extension method for adding in a bunch of parameters

RecordToExpando ( this rdr ) : dynamic
ToDictionary ( this thingy ) : object>.IDictionary

Turns the object into a Dictionary

ToExpando ( this o ) : dynamic

Turns the object into an ExpandoObject

ToExpandoList ( this rdr ) : List

Turns an IDataReader to a Dynamic list of things

Method Details

AddParam() public static method

Extension for adding single parameter
public static AddParam ( this cmd, object item ) : void
cmd this
item object
return void

AddParams() public static method

Extension method for adding in a bunch of parameters
public static AddParams ( this cmd ) : void
cmd this
return void

RecordToExpando() public static method

public static RecordToExpando ( this rdr ) : dynamic
rdr this
return dynamic

ToDictionary() public static method

Turns the object into a Dictionary
public static ToDictionary ( this thingy ) : object>.IDictionary
thingy this
return object>.IDictionary

ToExpando() public static method

Turns the object into an ExpandoObject
public static ToExpando ( this o ) : dynamic
o this
return dynamic

ToExpandoList() public static method

Turns an IDataReader to a Dynamic list of things
public static ToExpandoList ( this rdr ) : List
rdr this
return List