C# Class Cats.Cats.Data.Micro.ObjectExtensions

Afficher le fichier Open project: edgecomputing/cats

Méthodes publiques

Méthode 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 méthode

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

AddParams() public static méthode

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

RecordToExpando() public static méthode

public static RecordToExpando ( this rdr ) : dynamic
rdr this
Résultat dynamic

ToDictionary() public static méthode

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

ToExpando() public static méthode

Turns the object into an ExpandoObject
public static ToExpando ( this o ) : dynamic
o this
Résultat dynamic

ToExpandoList() public static méthode

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