Basically, I want a function that accepts an object as a parameter. Using reflection the properties of that object are iterated through and the resulting property names / values are added as SQL Stored Proc params. This is easy enough for the parameters in the original object... but if, say, one of those parameters contains a custom object with other parameters it becomes difficult.
Consider:
Expand|Select|Wrap|Line Numbers
- Person.Name (string)
- Person.Height (int)
- Person.Eyes (HumanEyes)
- Person.DateOfBirth (datetime)
- HumanEyes.Colour (string)
- HumanEyes.Width (int)
Anyway to distinguish? Or alternate suggestions?
Thanks