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); }
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()); }
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); }
public void Remove(Models.SysUserInGroup item) { throw new NotImplementedException(); }