iRon7 / Join-Object

Combines two objects lists based on a related property between them.
MIT License
107 stars 13 forks source link

Calculated Objects #20

Closed iRon7 closed 3 years ago

iRon7 commented 3 years ago

Add the possibility to add object/properties based on a expression.

Instead of:

Id Name Country


1 Engineering Germany 2 Marketing England 3 Sales France 4 Purchase France


I would like to be able to do this:
```PowerShell
$i = 1
{ $i++ } |Join $Department -ValueName Id

or this:

$i = 1
{ @{ Id = $i++ } } |Join $Department
iRon7 commented 3 years ago

I have canceled this idea because it mutual exclusive with (main) -On feature and appears to cause a lot of exceptions and dependencies. e.g. to define the column (property) names, the expression (of the first row?) needs to be evaluated which could potentially have a decency on the object on the other side (meaning you can't have a expression on both sides).