コード例 #1
0
ファイル: B_DevBLL.cs プロジェクト: led-os/game-center
        /// <summary>
        /// 根据开发者名称获取开发者ID
        /// </summary>
        /// <param name="devName"></param>
        /// <returns></returns>
        public string GetDevIDByName(string CPName)
        {
            List <CPsEntity> list = new B_DevDAL().GetDevIDByName(CPName);

            StringBuilder result = new StringBuilder();

            foreach (CPsEntity item in list)
            {
                result.AppendFormat("'{0}',", item.CPID);
            }

            return(result.ToString().TrimEnd(','));
        }
コード例 #2
0
ファイル: B_DevBLL.cs プロジェクト: led-os/game-center
        /// <summary>
        /// 获取主键列表
        /// </summary>
        /// <returns></returns>
        public Dictionary <int, string> GetParmaryKey()
        {
            List <CPsEntity> list = new B_DevDAL().GetParmaryKey();

            Dictionary <int, string> dic = new Dictionary <int, string>();

            foreach (CPsEntity item in list)
            {
                if (dic.ContainsKey(item.CPID))
                {
                    continue;
                }
                else
                {
                    dic.Add(item.CPID, item.CPName);
                }
            }

            return(dic);
        }
コード例 #3
0
ファイル: B_DevBLL.cs プロジェクト: led-os/game-center
 public List <CPsEntity> GetDataListByPager(int startIndex, int endIndex, ref int total, string CPName)
 {
     total = new B_DevDAL().GetTotalCount(CPName);
     return(new B_DevDAL().GetDataListByPager(startIndex, endIndex, CPName));
 }