public int GetIdFolder(RadTreeNode node) { int Id = IdFolderNotFound; if (node != null) { try { DataRowView row = node.DataBoundItem as DataRowView; Id = CxConvert.ToInt32(row.Row[DbManager.CnFoldersIdFolder].ToString(), IdFolderNotFound); } catch { } } return(Id); }
public static int ZzGetScalarInteger(this SQLiteCommand command) { return(CxConvert.ToInt32(command.ExecuteScalar(), -1)); }
public static async Task <int> ZzGetScalarIntegerAsync(this SQLiteCommand command) { return(CxConvert.ToInt32(await command.ExecuteScalarAsync(), -1)); }
public static int ZzGetScalarInteger(this SQLiteCommand command, string sql) { command.CommandText = sql; return(CxConvert.ToInt32(command.ExecuteScalar(), -1)); }