/// <summary>
        /// 根据主键获取实体
        /// </summary>
        /// <returns>实体</returns>
        public RelUserGroupModel Retrieve()
        {
            RelUserGroupModel relusergroup = new RelUserGroupModel();

            DataTable dt = DbUtil.Current.Retrieve(relusergroup);

            if (dt.Rows.Count < 1)
            {
                return(null);
            }

            relusergroup.ConvertFrom(dt);

            return(relusergroup);
        }
        /// <summary>
        /// 根据条件获取实体集合
        /// </summary>
        /// <param name="pc">pc</param>
        /// <param name="obc">obc</param>
        /// <returns>实体</returns>
        public List <RelUserGroupModel> RetrieveMultiple(ParameterCollection pc, OrderByCollection obc)
        {
            List <RelUserGroupModel> relusergroups = new List <RelUserGroupModel>();

            RelUserGroupModel relusergroup = new RelUserGroupModel();
            DataTable         dt           = DbUtil.Current.RetrieveMultiple(relusergroup, pc, obc);

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                relusergroup = new RelUserGroupModel();
                relusergroup.ConvertFrom(dt, i);
                relusergroups.Add(relusergroup);
            }

            return(relusergroups);
        }