Exemplo n.º 1
0
        /// <summary>
        /// 批量插入权限集合
        /// </summary>
        /// <param name="newList"></param>
        /// <returns></returns>
        public int InsertRights(List <sys_role_right> newList)
        {
            int rowCount = 0;

            foreach (var item in newList)
            {
                helper.InsertEntity <sys_role_right>(item);
                rowCount++;
            }
            return(rowCount);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 新增销售机会
 /// </summary>
 /// <param name="sal"></param>
 public void AddSal(sal_chance sal)
 {
     helper.InsertEntity <sal_chance>(sal);
 }