Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stymied?
Message
De
25/07/2011 16:21:29
 
 
À
25/07/2011 15:26:29
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01519092
Message ID:
01519103
Vues:
44
>>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 ?
>
>Entity Framework edmx? Straight up or thru Ria Services?

In this instance just straight edmx. No projection. But I don't think it would make any difference either way
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform