The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Entity loading from View

Last post 03-06-2008, 7:34 AM by JohnFry. 2 replies.
Sort Posts: Previous Next
  •  03-05-2008, 6:29 AM 8272

    Entity loading from View

    From my point of view, the ability to load an Entity from a View has at last made ES really usable with Grids. I can now sort,group,filter, etc on the "extended" columns. 

    Is there some way that I can ensure ES always loads the entity from a view?

    At the moment I'm particularly interested in the case when a child collection is loaded via the hierarchical method of the parent (ChildCollectionByParentID). If I'm displaying Parent rows databound in a Grid and expand a row, the Grid automatically displays the children - but I want to have that ChildCollection loaded from a View.

    Using version 2007.1.1210

     

     

  •  03-06-2008, 5:10 AM 8282 in reply to 8272

    Re: Entity loading from View

    That is a feature we are working towards by the end of 2008, and that is to allow you to design your entire domain model through an application that we will provide and then you can generate your EntitySpaces architecture against the domain model rather than the physical database model, however, we will support both the physical model (as we do now) and the abstract domain model as well.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  03-06-2008, 7:34 AM 8287 in reply to 8282

    Re: Entity loading from View

    Mike, good to have a dialogue with you again.

    Your plan is interesting indeed. I wonder though how you will match the performance of the database engine in modelling the domain - but that's a discussion for another time.

    Back to my original question: I've figured out that overriding the Load() method of the EntityQuery and setting "QuerySource" to a view that populates all of the the Enitiy's columns plus a couple of others (friendly strings instead of integer IDs) does the trick for everything except Many-to-Many relations. Can you think of a "trick" that would work for Many-to-Many? I would be extremely grateful. I know I could write an ES Query and do the job myself, but that kind of defeats the object.

    John

View as RSS news feed in XML