ORM.Expression

Posts   
 
    
Rogelio
User
Posts: 221
Joined: 29-Mar-2005
# Posted on: 30-Jul-2006 16:42:38   

Frans,

In version 1.0.2005.1, I have a typedlist that has an entity joined twice.

I can specify an alias for an entity's field in:


ORM.FieldCompareExpressionPredicate(MyEntityFields.Field1, _
                                                      Nothing, ORM.ComparisonOperator.Equal, _
                                                      New ORM.Expression(MyEntityFields.Field2), True, "EntityAlias")

But what about ORM.Expression(MyEntityFields.Field2), ? I could not find an overload to specify an alias for the second time the same entity is joined.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 31-Jul-2006 07:19:45   

The EntityField has an Alias property that can be set.

Rogelio
User
Posts: 221
Joined: 29-Mar-2005
# Posted on: 31-Jul-2006 13:37:27   

Walaa wrote:

The EntityField has an Alias property that can be set.

Thanks, I will check.