John wrote:
It's not only the datatype i'm interested. I just want to refer to the entity by a synatax checked prooperty name instead of accessing it by fieldname as string.
If i make typing errors, it wil result in runtime errors. this is what i want to avoid.
Are you using adapter or self-servicing?
For both, every Entity has a syntax-checked (and typed!) property for every field in its underlying table or view.
However, if you are using adapter, and are trying to access entity property names off of an entity collection, you either need to use the field's string name (usually not the best method) or cast the entity to a specific entity type before you access the fields by property name (usually the preferred method).
Self-servicing entity collections are typed.
Outside of the possibility of your difficulties coming from EntityCollections (which the above text is meant to remedy), your questions don't make a lot of sense. The functionality you are asking for should be available out of the box.