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