/// <summary> /// Converts this instance of <see cref="protocolsystemuser"/> to an instance of <see cref="protocolsystemuserDto"/>. /// </summary> /// <param name="entity"><see cref="protocolsystemuser"/> to convert.</param> public static protocolsystemuserDto ToDTO(this protocolsystemuser entity) { if (entity == null) { return(null); } var dto = new protocolsystemuserDto(); dto.v_ProtocolSystemUserId = entity.v_ProtocolSystemUserId; dto.i_SystemUserId = entity.i_SystemUserId; dto.v_ProtocolId = entity.v_ProtocolId; dto.i_ApplicationHierarchyId = entity.i_ApplicationHierarchyId; 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); }