Print Page | Close Window

What is the equiv. to Entity[Ordinal] from classic

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1696
Printed Date: 16-Apr-2024 at 2:11pm


Topic: What is the equiv. to Entity[Ordinal] from classic
Posted By: orcities
Subject: What is the equiv. to Entity[Ordinal] from classic
Date Posted: 23-Mar-2010 at 5:18pm

How do you find a specific property in WinClient API.

In Classic you could go to the DataRow format and get the property based on the ordinal. How do you do the equiv. with WinClient?



Replies:
Posted By: davidklitzke
Date Posted: 25-Mar-2010 at 3:15pm
I don't think that there is an equivalent concept in either WinClient or Linq.
 
In Classic, about the only use that I found for the Entity[Ordinal] capability was to assign a value  to a read-only property (e.g., Employee[0] = 1234).  This is a workaround for the problem that Employee.Id = 1234 generates a coimpiler error.  Is this the problem that you are trying to solve?


Posted By: orcities
Date Posted: 25-Mar-2010 at 3:26pm
No.
 
I have a need to compare values on an unknown entities property based on a string.
 
In Classic if you wanted to compare and didn't know the property one way was to say BlahEntity["SomePropert"] == "MyValue".


Posted By: IdeaBlade
Date Posted: 25-Mar-2010 at 5:02pm
BlahEntity.EntityAspect["SomePropert"] == "MyValue"

Everything except "pure" properties has been moved off the entity and into EntityAspect, so that intellisense and reflection views of the object aren't cluttered.



Posted By: orcities
Date Posted: 25-Mar-2010 at 5:08pm
Thank you .



Print Page | Close Window