Пример #1
0
        /// <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
        //
        // 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);
        }