示例#1
0
        public void Add(Models.SysUserInGroup item)
        {
            DbCommand comm = this.GetCommand("SysUserInGroup_Insert");

            comm.AddParameter <string>(this.Factory, "Username", item.Username);
            comm.AddParameter <string>(this.Factory, "GroupCode", item.GroupCode);

            this.SafeExecuteNonQuery(comm);
        }
示例#2
0
        public Models.SysUserInGroup Get(Models.SysUserInGroup dummy)
        {
            DbCommand comm = this.GetCommand("SysUserInGroup_Get");



            comm.AddParameter <string>(this.Factory, "Username", dummy.Username);


            DataTable dt = this.GetTable(comm);

            return(EntityBase.ParseListFromTable <SysUserInGroup>(dt).FirstOrDefault());
        }
示例#3
0
        public void Update(Models.SysUserInGroup @new, Models.SysUserInGroup old)
        {
            var item = @new;

            item.Username = old.Username;



            DbCommand comm = this.GetCommand("SysUserInGroup_Update");

            comm.AddParameter <string>(this.Factory, "Username", item.Username);
            comm.AddParameter <string>(this.Factory, "GroupCode", item.GroupCode);



            this.SafeExecuteNonQuery(comm);
        }
示例#4
0
 public void Remove(Models.SysUserInGroup item)
 {
     throw new NotImplementedException();
 }