LINQ to SQL object to implement an interface?

The classes are created as partial classes, you can simply add: public partial class CustomExpressions: IExpression { //blah blah blah } public partial class GlobalExpressions: IExpression { //blah blah blah } and add the missing bits in there.

This is done because this property on the MyBusinessObject can either be of type CustomExpression, or GlobalExpression, but is decided at dynamically. This all worked fine, but I was directed to take out the CustomExpression and GlobalExpression object and to directly use the CustomExpression and GlobalExpression linqtosql object. This allows me to not have to convert from POCO to linqtosql object every time I need to do something with the database.

The problem with this tho, is that I no longer have CustomExpression and GlobalExpression objects that implement the IExpression interface. What am I supposed to do in this situation? Is there a way to represent this relationship with that interface with these objects?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions