I need to validate a Parameter if it contains any values before I delete it. The Parameter is in another table and values are in another table. I am trying this by using lambda expression, but just can't find the right way. This gets the data from CalculationParameters table:
Factory.Definitions.CalculationParameters.List(); // List() lists all the data.
And this gets the data from CalculationParametersValues table:
Factory.Definitions.CalculationParametersValues.List(); // List() lists all the data.
Now if the "Id" (from CalculationParameter) equals to "CalculationParameterId" (from CalculationParametersValue) means that CalculationParameter contains values and I can't delete it.
Does anyone have any idea to help me out here ?