I am trying to do some abstraction in classes generated by entity framework class and have a setup like the following:
EntityClassA (Generated)
{
EntityCollection<EntityClassB> EntityClassBs;
}
EntityClassB (Generated)
{
(...)
}
Partial EntityClassA : InterfaceA
{
(...)
}
Partial ClassB : InterfaceB
{
(...)
}
InterfaceA
{
IEnumerable<InterfaceB> EntityClassBs;
}
but I keep getting issues saying EntityClassA does not implement properly because the return types don't match on EntityClassBs.
UPDATE: My apologies, I did not intend to submit this question in this state. Updated example to include proper interfaceA property name and more detailed explanation. Keep in mind this is only an example and the nomenclature does not represent actual names.
What I am trying to do is I have a class library of wpf controls and a library for data. The WPF library references the Data library for one class that it uses to construct a custom table. So what I was trying to do was take the reliance of the data package by using Interfaces. Is there a way I can proceed like this or is there a more recommended way?
What I am seeing is that I need to match the signature of the interface property exactly and I cannot implement interfaces like that.