C# Class Einstein.PowerShell.LINQ.PSObjectFactory

Efficiently converts objects of various types into new PSObject instances by copying the fields into note properties.
显示文件 Open project: josheinstein/PowerShell-LINQ

Public Methods

Method Description
FromDataRecord ( IDataRecord record ) : System.Management.Automation.PSObject

Creates a PSObject from the specified IDataRecord implementation.

FromDataRecord ( IDataRecord record, bool trimSpaces ) : System.Management.Automation.PSObject

Creates a PSObject from the specified IDataRecord implementation.

Method Details

FromDataRecord() public static method

Creates a PSObject from the specified IDataRecord implementation.
public static FromDataRecord ( IDataRecord record ) : System.Management.Automation.PSObject
record IDataRecord The IDataRecord implementation such as the current row in a SqlDataReader.
return System.Management.Automation.PSObject

FromDataRecord() public static method

Creates a PSObject from the specified IDataRecord implementation.
public static FromDataRecord ( IDataRecord record, bool trimSpaces ) : System.Management.Automation.PSObject
record IDataRecord The IDataRecord implementation such as the current row in a SqlDataReader.
trimSpaces bool True to remove leading/trailing spaces from string columns. The default is true.
return System.Management.Automation.PSObject