DatabaseDBCount Method (String, String, String, DataFuncOptions, String, Int32) |
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public int DBCount(
string column,
string table,
string where,
DataFuncOptions options,
string logSource,
int commandTimeout
)
Public Function DBCount (
column As String,
table As String,
where As String,
options As DataFuncOptions,
logSource As String,
commandTimeout As Integer
) As Integer
Parameters
- column
- Type: SystemString
The name of the column from which to retrieve the value. - table
- Type: SystemString
The name of the table from which to retrieve the value. - where
- Type: SystemString
Filter criteria for which records to retrieve. - options
- Type: NetQuarryDataFuncOptions
Option flags affecting the operation. - logSource
- Type: SystemString
The source of the operation, to be logged to the devlog. - commandTimeout
- Type: SystemInt32
The command timeout in seconds (overriding system default).
Return Value
Type:
Int32The number of matching records.
Implements
IDatabaseDBCount(String, String, String, DataFuncOptions, String, Int32)Examples
object val = db.DBLookup("CompanyName", "Customers", "CompanyName LIKE 'Alfreds%'");
Console.WriteLine(val.ToString());
Console.WriteLine(db.DBCount("*", "Customers", ""));
See Also