Esempio n. 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);
        }
Esempio n. 2
0
 public bool IsValid(string value) => CxConvert.IsValidInt64(value);
Esempio n. 3
0
 public static string ZzGetScalarString(this SQLiteCommand command)
 {
     return(CxConvert.ToString(command.ExecuteScalar()));
 }
Esempio n. 4
0
 public static string ZzGetScalarString(this SQLiteCommand command, string sql)
 {
     command.CommandText = sql;
     return(CxConvert.ToString(command.ExecuteScalar()));
 }
Esempio n. 5
0
 public static async Task <int> ZzGetScalarIntegerAsync(this SQLiteCommand command)
 {
     return(CxConvert.ToInt32(await command.ExecuteScalarAsync(), -1));
 }
Esempio n. 6
0
 public static int ZzGetScalarInteger(this SQLiteCommand command)
 {
     return(CxConvert.ToInt32(command.ExecuteScalar(), -1));
 }
Esempio n. 7
0
 public static int ZzGetScalarInteger(this SQLiteCommand command, string sql)
 {
     command.CommandText = sql;
     return(CxConvert.ToInt32(command.ExecuteScalar(), -1));
 }