GetByParameters(T) Method

SimpleEssentials

DbDataProvider..::..GetByParameters<(Of <(<'T>)>)> Method

Gets all rows by a sql statement and optional parameters.

Namespace:  SimpleEssentials.DataProvider
Assembly:  SimpleEssentials (in SimpleEssentials.dll)

Syntax


public IEnumerable<T> GetByParameters<T>(
	string sql,
	Object param,
	CacheSettings cacheSettings
)
Public Function GetByParameters(Of T) ( _
	sql As String, _
	param As Object, _
	cacheSettings As CacheSettings _
) As IEnumerable(Of T)
public:
generic<typename T>
IEnumerable<T>^ GetByParameters(
	String^ sql, 
	Object^ param, 
	CacheSettings^ cacheSettings
)

Type Parameters

T

Parameters

sql
Type: String
The SQL.
param
Type: Object
The parameter.
cacheSettings
Type: SimpleEssentials.Cache..::..CacheSettings
The cache settings.

Return Value

IEnumerable<T>.