public long ExecDataTableLng(IDbCommand command) { DataTable dtt = ExecDataTable(command); if ((dtt == null) || (dtt.Rows.Count < 1)) { return(0); } else { return(GDataTypeConverter.DbToLong(dtt.Rows[0][0])); } }
public long ExecScalarLng(IDbCommand command) { long result = 0; if (_auto_open_close) { Open(); } command.Connection = _connection; command.CommandTimeout = _command_timeout; result = GDataTypeConverter.DbToLong(command.ExecuteScalar()); if (_auto_open_close) { Close(); } return(result); }