示例#1
0
        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);
        }
示例#2
0
 public static int ZzGetScalarInteger(this SQLiteCommand command)
 {
     return(CxConvert.ToInt32(command.ExecuteScalar(), -1));
 }
示例#3
0
 public static async Task <int> ZzGetScalarIntegerAsync(this SQLiteCommand command)
 {
     return(CxConvert.ToInt32(await command.ExecuteScalarAsync(), -1));
 }
示例#4
0
 public static int ZzGetScalarInteger(this SQLiteCommand command, string sql)
 {
     command.CommandText = sql;
     return(CxConvert.ToInt32(command.ExecuteScalar(), -1));
 }