Actually I lied

I think I can get this example to work...

The one I can't get to work is in fact in some sense simpler


Class Expression
{
}

Class FunctionalExpression : Expression
{
        Public Expression parameterExpression;
}

(I suppose there's a clue there to a solution...i.e. if I separate the
parameterExpression into another 'entity'...then it will work like the
ListExpression example....but the point really is that I don't
understand why it actually doesn't work)

P.S.

Is it just me that finds both the error messages and the "Mapping
Detail" window incomprehensible?

> -----Original Message-----
> From: Discussion of advanced .NET topics. [mailto:ADVANCED-
> [EMAIL PROTECTED] On Behalf Of Nicholls, Mark
> Sent: 29 August 2008 10:31
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: [ADVANCED-DOTNET] Struggling with the entity framework.....
> 
> Has anyone managed to get anything that is not completely trivial to
work?
> 
> I've done an msdn walkthrough with courses and departments...seemed to
> work, and implemented a very simlpe inheritance of course.
> 
> Problem now is that if I try to create something myself with is one
step
> up from completely trivial, I get things like...
> 
> "Problem in Mapping Fragment starting at line 249: Potential runtime
> violation of table" ...bla bla bla
> 
> Is it me? or is this a beta in release clothing?
> 
> My slightly non trivial case is just...(in class terms)...
> 
> class Expression
> {
> }
> 
> class ListExpression : Expression
> {
> }
> 
> class ListExpressionElement
> {
>     public Expression expression;
>     public ListExpression isMemberOfList;
> }
> 
> i.e. a pretty simple recursive composite pattern.
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at
> http://discuss.develop.com



CONFIDENTIALITY NOTICE

This e-mail (and any attached files) is confidential and protected by 
copyright (and other intellectual property rights). If you are not the 
intended recipient please e-mail the sender and then delete the email and 
any attached files immediately. Any further use or dissemination is 
prohibited.

While MTV Networks Europe has taken steps to ensure that this email and 
any attachments are virus free, it is your responsibility to ensure that 
this message and any attachments are virus free and do not affect your 
systems / data.

Communicating by email is not 100% secure and carries risks such as delay, 
data corruption, non-delivery, wrongful interception and unauthorised 
amendment. If you communicate with us by e-mail, you acknowledge and 
assume these risks, and you agree to take appropriate measures to minimise 
these risks when e-mailing us. 

MTV Networks International, MTV Networks UK & Ireland, Greenhouse, 
Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions 
International and Comedy Central are all trading names of MTV Networks 
Europe.  MTV Networks Europe is a partnership between MTV Networks Europe 
Inc. and Viacom Networks Europe Inc.  Address for service in Great Britain 
is UK House, 180 Oxford Street, London W1D 1DS, UK.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to