fix for fodder_maize
All checks were successful
FarmMaps.Develop/CarbonLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/CarbonLib/pipeline/head This commit looks good
This commit is contained in:
@@ -34,6 +34,25 @@ namespace FarmMapsAPI.Carbon.Models
|
||||
}
|
||||
}
|
||||
|
||||
public void AddOrUpdateValue((string, int, string) key, string column, double value)
|
||||
{
|
||||
if (TrippleKeyParam.ContainsKey(key))
|
||||
{
|
||||
if (TrippleKeyParam[key].Any(x => x.Key == column))
|
||||
{
|
||||
TrippleKeyParam[key].Single(x => x.Key == column).Value = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
TrippleKeyParam[key].Add(new ColumnValue(column, value));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TrippleKeyParam.Add(key, new List<ColumnValue> { new ColumnValue(column, value) });
|
||||
}
|
||||
}
|
||||
|
||||
public void AddValueSkipIfColumnExists((string, int, string) key, string column, double value)
|
||||
{
|
||||
if (TrippleKeyParam.ContainsKey(key))
|
||||
|
||||
Reference in New Issue
Block a user