ExecuteScalar Method

SimpleEssentials

DbDataProvider..::..ExecuteScalar Method

Executes the scalar.

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

Syntax


public int ExecuteScalar(
	string sql,
	Object param,
	CacheSettings cacheSettings,
	bool invalidateCache
)
Public Function ExecuteScalar ( _
	sql As String, _
	param As Object, _
	cacheSettings As CacheSettings, _
	invalidateCache As Boolean _
) As Integer
public:
int^ ExecuteScalar(
	String^ sql, 
	Object^ param, 
	CacheSettings^ cacheSettings, 
	bool^ invalidateCache
)

Parameters

sql
Type: String
The SQL.
param
Type: Object
The parameter.
cacheSettings
Type: SimpleEssentials.Cache..::..CacheSettings
The cache settings.
invalidateCache
Type: Boolean
if set to true [invalidate cache].

Return Value

TODO