コード例 #1
0
ファイル: Folders.cs プロジェクト: user4000/TJ-Test-Network
        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));
 }