/// <summary> /// Converts this instance of <see cref="attentioninarea"/> to an instance of <see cref="attentioninareaDto"/>. /// </summary> /// <param name="entity"><see cref="attentioninarea"/> to convert.</param> public static attentioninareaDto ToDTO(this attentioninarea entity) { if (entity == null) { return(null); } var dto = new attentioninareaDto(); dto.v_AttentionInAreaId = entity.v_AttentionInAreaId; dto.i_NodeId = entity.i_NodeId; dto.v_Name = entity.v_Name; dto.v_OfficeNumber = entity.v_OfficeNumber; dto.i_IsDeleted = entity.i_IsDeleted; dto.i_InsertUserId = entity.i_InsertUserId; dto.d_InsertDate = entity.d_InsertDate; dto.i_UpdateUserId = entity.i_UpdateUserId; dto.d_UpdateDate = entity.d_UpdateDate; entity.OnDTO(dto); return(dto); }