Show / Hide Table of Contents

# Class DbConnectionByObjectExtension

##### Inheritance

System.Object
DbConnectionByObjectExtension

##### Inherited Members

System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Mellivora

###### Assembly: cs.temp.dll.dll

##### Syntax

    public static class DbConnectionByObjectExtension

### Methods

#### ExecuteNonQueryByObject(IDbConnection, String, Object[])

##### Declaration

    public static int ExecuteNonQueryByObject(this IDbConnection connection, string commandText, params object[] values)

##### Parameters

Type | Name | Description
--- | --- | ---
IDbConnection | connection |
System.String | commandText |
System.Object[] | values |

##### Returns

Type | Description
--- | ---
System.Int32 |

#### ExecuteScalarByObject<T>(IDbConnection, String, Object[])

##### Declaration

    public static object ExecuteScalarByObject<T>(this IDbConnection connection, string commandText, params object[] values)

##### Parameters

Type | Name | Description
--- | --- | ---
IDbConnection | connection |
System.String | commandText |
System.Object[] | values |

##### Returns

Type | Description
--- | ---
System.Object |

##### Type Parameters

Name | Description
--- | ---
T |

#### QueryByObject<T>(IDbConnection, String, Int32, Int32, Object[])

##### Declaration

    public static IEnumerable<T> QueryByObject<T>(this IDbConnection connection, string commandText, int startField, int length, params object[] values)

##### Parameters

Type | Name | Description
--- | --- | ---
IDbConnection | connection |
System.String | commandText |
System.Int32 | startField |
System.Int32 | length |
System.Object[] | values |

##### Returns

Type | Description
--- | ---
System.Collections.Generic.IEnumerable<T> |

##### Type Parameters

Name | Description
--- | ---
T |

#### QueryByObjects<T>(IDbConnection, String, Object[])

##### Declaration

    public static IEnumerable<T> QueryByObjects<T>(this IDbConnection connection, string commandText, params object[] values)

##### Parameters

Type | Name | Description
--- | --- | ---
IDbConnection | connection |
System.String | commandText |
System.Object[] | values |

##### Returns

Type | Description
--- | ---
System.Collections.Generic.IEnumerable<T> |

##### Type Parameters

Name | Description
--- | ---
T |