コード例 #1
0
ファイル: DBTable.cs プロジェクト: sampath1983jan/TechData
        /// <summary>
        /// Creates and returns a new DBTable reference with the specifed name
        /// </summary>
        /// <returns></returns>
        public static DBTable Table()
        {
            DBTableRef tref = new DBTableRef();

            tref.Name = string.Empty;
            return(tref);
        }
コード例 #2
0
ファイル: DBTable.cs プロジェクト: sampath1983jan/TechData
        //
        // static factory methods
        //

        #region public static DBTable Table(string name)

        /// <summary>
        /// Creates and returns a new DBTable reference with the specifed name
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static DBTable Table(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }

            DBTableRef tref = new DBTableRef();

            tref.Name = name;
            return(tref);
        }