示例#1
0
 /// <summary>
 /// 更新菜单
 /// </summary>
 /// <param name="et"></param>
 /// <returns></returns>
 public bool update(Menu et)
 {
     return(Client.AsUpdateable(et).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand() > 0);
 }
示例#2
0
 /// <summary>
 /// 更新用户信息
 /// </summary>
 /// <param name="et">用户实体</param>
 /// <returns></returns>
 public bool update(User et)
 {
     //不更新为null的列
     return(userClent.AsUpdateable(et).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand() > 0);
 }
示例#3
0
 /// <summary>
 /// 更新组织关系
 /// </summary>
 /// <param name="et"></param>
 /// <returns></returns>
 public bool update(OrganizationOrg et)
 {
     //值为null的属性不更新
     return(Client.AsUpdateable(et).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand() > 0);
 }
示例#4
0
 public bool update(Role et)
 {
     return roleClient.AsUpdateable(et).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommand()>0;
 }