i am working on a legacy enterprise database that uses multiple columns to retrieve a part number the sql we currently use checks for a part number and if the part number is null then checks for the child part number what would be the best way of combining this logic into a single ef model property (eg Product.PartNumber )
I would like this to be invisible as possible so that only PartNumber is visible externally to the data api
in theory couldnt you do something like this
or is this still considered bad