Example #1
0
        /// <summary>
        /// 字段
        /// </summary>
        /// <param name="paramName">字段名</param>
        /// <param name="dbType">数据库类型</param>
        /// <param name="allowNull">允许空</param>
        /// <param name="type">类型</param>
        /// <param name="length">长度</param>
        /// <returns></returns>
        public KeyWordAddParamItem AddParam(string paramName,
                                            DbType dbType, bool allowNull, EntityPropertyType type, int length)
        {
            EntityParam info = new EntityParam("", paramName, "",
                                               dbType, type, "", length, false, false);
            KeyWordAddParamItem item = new KeyWordAddParamItem(info, _tableName, this);

            return(item);
        }
Example #2
0
        /// <summary>
        /// 字段
        /// </summary>
        /// <param name="paramName">字段名</param>
        /// <param name="dbType">数据库类型</param>
        /// <param name="allowNull">允许空</param>
        /// <param name="type">类型</param>
        /// <param name="length">长度</param>
        /// <returns></returns>
        public KeyWordAddParamItem AddParam(EntityParam info)
        {
            KeyWordAddParamItem item = new KeyWordAddParamItem(info, _tableName, this);

            return(item);
        }