I have a class that has a foreign key as one of the properties of the class. When I create a new object of the class I want to initialize the key to a particular value. Obviously I do not want to hard code the value based on a particular record in the database. Should I create a table in the database of constants such as this foreign key and then have the Business Layer call the dal to get the key? I am trying to create an N-Tier application with a business class and a Dal. Thanks for your help Judy
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.