Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i adding new Product and ProductDetails at the same time in a screen I have a problem with Computed Properties in ProductDetails Entity Because There is no ProductID yet and other ID's that are Foreign key in ProductDetails was not selected yet so Computed Properties in ProductDetails such as AutoName(that Computed based on ProductProperties),CategoryName, ... face to exception.
how we can handle these 2 Problem:

1) There is no ProductID as a Parent yet
2) how to select set Of property for a product as a ProductDetails by selecting Productkind when click on add button in ProductDetails child screen

Actually we want to show a modal window to select category before add a ProductProperty to a new Product, to add related Properties automaticlly at ProductDetails Grid, how can we do now?
Posted
Updated 27-Mar-12 22:28pm
v6
Comments
wizardzz 27-Mar-12 16:39pm    
What have you tried?
ManOnABoat 12-Dec-13 12:38pm    
Maybe try making the Product a base class, ProductDetails a sub-class and in there create a method for ProductID, so that is accessible by Product base class

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900