entity framework - Returning subclassed entities from Ria Services -


i have entityimplements inherits entitybase

anyone know how can properties (they complex properties if matters) of entityimplements client side?

when query data both entity types, cant property unique entityimplements

i assume metadata issue

i tried adding class , metadata (which may have bungled) entity2 (default creates metadata base entity) no avail.

my next step try define query returns entityimplements causes lots of other issues.

help please

ok, think solved it.

here had do.

in metadata file of domainservice base class unseal sub new (or change friend in vb)

create partial class name of sub class (which not auto gened)

have partial class inherit base class have metadata class inherit baseclass.baseclassmetadata

in metadata portion of subclass, add properties not implimented base class, , annotate include needed, etc.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -