Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Homework LightSwitch
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 27-Mar-12 10:06am
Edited 27-Mar-12 22:28pm
v6
Comments
wizardzz at 27-Mar-12 16:39pm
   
What have you tried?
ManOnABoat at 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)



Advertise | Privacy | Mobile
Web03 | 2.8.141002.1 | Last Updated 28 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100