Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stymied?
Message
From
25/07/2011 13:25:00
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Stymied?
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01519092
Message ID:
01519092
Views:
112
Assume this class:
public partial class Library : EntityObject
    {
         public Library Parent
        {
            get { return new Library();}
         }
    }
As you may guess given the EntityObject inheritance the really thing is more complex, generated by the EDMX builder and cannot be modified. I'd like it to implement an Interface:
public interface ITreeview
    {
        ITreeview Parent { get; }
    }
But (I suppose expectedly) adding this won't compile:
public partial class Library : ITreeview
    {
    }
Is there anyway of achieving what I want ?
Next
Reply
Map
View

Click here to load this message in the networking platform