General information
Category:
The Mere Mortals .NET Framework
Title:
Best practice on Foreign Keys
Environment versions
Network:
Windows 2003 Server
When retrieving a record with a foreign key field it is desirable to display a field from the Primary Key table.
What is the best practice for doing this using the MM.Net framework?
I modified the MM.Net generated stored procedure and Data Access Layer to retrieve the desired field. Is this the acceptable method?
Example:
Crew table:
CrewPK
Name
CrewTypeFK
.
.
.
CrewType table:
CrewTypePK
TypeName
.
.
.
When I display the Crew table information I want to show the CrewType.TypeName instead of the Crew.CrewTypeFK value.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only