hi all, i have 2 classes (Master-Details), the "Order" and "OrderDetails" class, i am trying to add an Order details to the "Order.OrderDetails" EntitySet using reflection as the following:
OrderDetails instance created and assigned correctly to the Order instance but the session doesn't see the added OrderDetails (Session's transactions events don't fired), so it doesn't persist it (i am using Xtensive.Storage.Web.SessionManager to manage sessions), does i do somthing not supported or incorrect, or even should i do somthing else to save the OrderDetails instance. thanks |
i don't now what is was the problem exactly, but when i used the solution mentioned by Peter Šulek at Bind EntitySet to GridView question, it works(so i think it may be due to binding grid view to an incorrect data source) Perfect. Thanks, Peter! My pleasure :-) And this means that your code provided above works when you bind grid using sorry for being late in replay, yes it works but in addition to implementing selecting event on LinqServerModeDataSource, i also implemented Inserting, updating and deleting and some times the event not fired at the first time(for example i press new button on the grid or delete or even edit), i don't know why (i left it right now as i am working on a critical issue, but if its a bug in the data source or i am unable to find a solution, i believe that i can change the events to be on the Grid View it self )? Note: all the wok done dynamically from the code, as we are building a framework and we need the developer to just binds the grid to a property(Entity Set represents a details record) in an Entity (Master record) |