示例#1
0
文件: Update.cs 项目: windischb/PgSql
        public Update AddClause(IUpdateMember clause)
        {
            switch (clause)
            {
            case Set set:
                _set = set;
                break;

            case IWhere where:
                _whereClause = where;
                break;
            }

            return(this);
        }
示例#2
0
 public IActionResult Put(int id, [FromBody] MemberDto dto, [FromServices] IUpdateMember command)
 {
     dto.Id = id;
     _executor.ExecuteCommand(command, dto);
     return(NoContent());
 }