Exemplo n.º 1
0
        /// <summary>
        /// 創建一個實例,栏位类型為默认的String类型,长度為无限制,允許為空
        /// </summary>
        /// <param name="column"></param>
        /// <returns></returns>
        public static ColumnP CreatInstanse(string column)
        {
            ColumnP cp = new ColumnP();

            cp.ColumnName = column;

            return(cp);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 創建一個實例,長度為無限制,允許為空
        /// </summary>
        /// <param name="column"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public static ColumnP CreatInstanse(string column, string type)
        {
            ColumnP cp = new ColumnP();

            cp.ColumnName = column;
            cp.DataType   = type;

            return(cp);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 創建一個實例,允許為空
        /// </summary>
        /// <param name="column"></param>
        /// <param name="type"></param>
        /// <param name="MaxLength"></param>
        /// <returns></returns>
        public static ColumnP CreatInstanse(string column, string type, int MaxLength)
        {
            ColumnP cp = new ColumnP();

            cp.ColumnName = column;
            cp.DataType   = type;
            cp.Length     = MaxLength;

            return(cp);
        }