I am trying to extend a Linq-to-Sql object with a few additional properties. These are "calculated" properties based on data from SQL View. For example, consider having a Date of Birth field, which is used to calculate the Extended Age field.
I tried to expand my entity class by extending the OnLoaded () method.
I get a compile-time error stating that I cannot create it. I checked the constructor code for my LTS entity class and does not have a partial definition for any of the expected extension points.
I checked several of my other LTS entity classes and they have these extension points. The only difference I see is that the one without it is loaded from SQL View, and not from the table. Is there a way to connect to the "Loaded" event when loading from an SQL view?
TIA!
Brian source
share