Esempio n. 1
0
        /// <summary>
        /// 得到方法输入参数的列表 (例如:用于Exists  Delete  GetModel 的参数传入)
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        public static string GetInParameter(List <ColumnInfo> keys)
        {
            StringPlus strclass = new StringPlus();

            foreach (ColumnInfo key in keys)
            {
                strclass.Append(CodeCommon.DbTypeToCS(key.TypeName) + " " + key.ColumnName + ",");
            }
            strclass.DelLastComma();
            return(strclass.Value);
        }
Esempio n. 2
0
        /// <summary>
        /// 得到参数的列表(例如:用于Exists  Delete  GetModel 的参数传入)
        /// </summary>
        /// <param name="keys"></param>
        /// <returns></returns>
        public static string GetParameter(List <CodeKey> keys)
        {
            StringPlus strclass = new StringPlus();

            foreach (CodeKey key in keys)
            {
                strclass.Append(CodeCommon.DbTypeToCS(key.KeyType) + " " + key.KeyName + ",");
            }
            strclass.DelLastComma();
            return(strclass.Value);
        }