/// <summary> /// Converts this instance of <see cref="movementdetail"/> to an instance of <see cref="movementdetailDto"/>. /// </summary> /// <param name="entity"><see cref="movementdetail"/> to convert.</param> public static movementdetailDto ToDTO(this movementdetail entity) { if (entity == null) { return(null); } var dto = new movementdetailDto(); dto.v_MovementId = entity.v_MovementId; dto.v_ProductId = entity.v_ProductId; dto.v_WarehouseId = entity.v_WarehouseId; dto.r_StockMax = entity.r_StockMax; dto.r_StockMin = entity.r_StockMin; dto.i_MovementTypeId = entity.i_MovementTypeId; dto.r_Quantity = entity.r_Quantity; dto.r_Price = entity.r_Price; dto.r_SubTotal = entity.r_SubTotal; dto.d_UpdateDate = entity.d_UpdateDate; entity.OnDTO(dto); return(dto); }