/// <summary> /// Converts this instance of <see cref="nodeorganizationprofile"/> to an instance of <see cref="nodeorganizationprofileDto"/>. /// </summary> /// <param name="entity"><see cref="nodeorganizationprofile"/> to convert.</param> public static nodeorganizationprofileDto ToDTO(this nodeorganizationprofile entity) { if (entity == null) { return(null); } var dto = new nodeorganizationprofileDto(); dto.i_NodeId = entity.i_NodeId; dto.v_OrganizationId = entity.v_OrganizationId; 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); }
/// <summary> /// Converts this instance of <see cref="nodeorganizationprofileDto"/> to an instance of <see cref="nodeorganizationprofile"/>. /// </summary> /// <param name="dto"><see cref="nodeorganizationprofileDto"/> to convert.</param> public static nodeorganizationprofile ToEntity(this nodeorganizationprofileDto dto) { if (dto == null) { return(null); } var entity = new nodeorganizationprofile(); entity.i_NodeId = dto.i_NodeId; entity.v_OrganizationId = dto.v_OrganizationId; entity.i_IsDeleted = dto.i_IsDeleted; entity.i_InsertUserId = dto.i_InsertUserId; entity.d_InsertDate = dto.d_InsertDate; entity.i_UpdateUserId = dto.i_UpdateUserId; entity.d_UpdateDate = dto.d_UpdateDate; dto.OnEntity(entity); return(entity); }
/// <summary> /// Invoked when <see cref="ToEntity"/> operation is about to return. /// </summary> /// <param name="entity"><see cref="nodeorganizationprofile"/> converted from <see cref="nodeorganizationprofileDto"/>.</param> static partial void OnEntity(this nodeorganizationprofileDto dto, nodeorganizationprofile entity);
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="nodeorganizationprofileDto"/> converted from <see cref="nodeorganizationprofile"/>.</param> static partial void OnDTO(this nodeorganizationprofile entity, nodeorganizationprofileDto dto);