public static int GetCount() { ISqlHelper sql_helper = SqlHelperFactory.GetDefaultSqlHelper(); string sql = "select count(*) from mdtbl_user"; int val = sql_helper.ExecuteInt32(sql); return(val); }