Skip to content

+更新dto方法 #218

Closed
Closed
@zhontai

Description

@zhontai

增加直接更新dto所有数据 + 实体审计数据的功能
为解决attach(entity) 会意外更新其它字段或者默认值无变化无法更新该字段的问题
entity = entityRep.getAsync(dto.id)
_mapper.Map(dto)
entityRep.UpdateAsync(entity) 这里更新需要查询再更新有变化的字段
场景:
_entity仓储.updateDto(dto) => update entityTable set dto.所有字段 + 内部获取 new entity(){ }.更新审计字段

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions