コード例 #1
0
ファイル: DBTop.cs プロジェクト: sampath1983jan/TechData
        //
        // static factory methods
        //

        #region public static DBTop Number(int count)
        /// <summary>
        /// Creates and returns a new TOP [count] statement
        /// </summary>
        /// <param name="count">The number of rows to return</param>
        /// <returns></returns>
        public static DBTop Number(int count)
        {
            DBTop top = new DBTopRef();

            top.TopValue = count;
            top.Type     = TopType.Count;
            return(top);
        }
コード例 #2
0
ファイル: DBTop.cs プロジェクト: sampath1983jan/TechData
        /// <summary>
        /// Creates and returns a new TOP [percent] PERCENT statement
        /// </summary>
        /// <param name="percent"></param>
        /// <returns></returns>
        public static DBTop Percent(double percent)
        {
            DBTop top = new DBTopRef();

            top.TopValue = percent;
            top.Type     = TopType.Percent;
            return(top);
        }
コード例 #3
0
ファイル: DBTop.cs プロジェクト: sampath1983jan/TechData
        /// <summary>
        /// Creates a returns a new TOP (LIMITS) statment with the specified restrictions
        /// </summary>
        /// <param name="value"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public static DBTop Top(double value, TopType type)
        {
            DBTop top = new DBTopRef();

            top.Type     = type;
            top.TopValue = value;

            return(top);
        }
コード例 #4
0
ファイル: DBTop.cs プロジェクト: sampath1983jan/TechData
        internal static DBClause Top()
        {
            DBTopRef top = new DBTopRef();

            return(top);
        }