Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best practice on Foreign Keys
Message
De
19/02/2009 13:58:57
 
 
À
19/02/2009 09:34:42
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01382748
Message ID:
01382953
Vues:
38
>The business objects are related when you call the RegisterChildBizObj method of the parent. If you look in the jump start for Web Forms >Application C# under step 12 step 4 you will see the following code in the page_load event that registers the OrderDetail as a child of the >Order business object.

I read about the RegisterChildBizObj, but it was never clear what occured during a select of the parent records it only discussed that records were affected on Add, Delete and modify in a cascading down effect and back up in the case of rule violations.

How would a child business object work in the case of a Crew readonly page where I want the CrewType field to display the CrewType.TypeName and not the Crew.CrewTypeFK. Will I need to call Crew.GetRecordByPK( int crew ) and then make a call to CrewType.GetRecordByPK ( Crew.CreTypeFK )? Then the CrewType textbox properties would be BindingSource: CrewType BindingSourceMember: TypeName?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform