Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Objects Primary Key vs. Unique Index Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Business Objects Primary Key vs. Unique Index Question
Divers
Thread ID:
01392737
Message ID:
01392737
Vues:
191
We are working through the MM.NET 3.5 jump starts. I am doing the business objects exercise and trying to follow what it does.

In Step 6: Enhancing the Order Business Object we declare this.PrimaryKey = "OrderID", this in the Order.cs class constructor.

What if you are using non-clustered indexes with unique declaration in order control your primary keys, rather than clustered indexes. Pretty much all our data revolve around use of an institutional identifier (like soc sec nbr, but not), so I will NOT have a contiguous set of numbers, nor ability to control assignment of this number. Clustered indexes on this value would not be a good idea. Thus our initial data model using non-clustered indexes with unique.

How will the MM.NET framework work with this? Does this.PrimaryKey have to be a true clustered index?

Thanks,
Ron.

Ronald D. Edge
Director of Information Services
Indiana University Athletics
http://iuhoosiers.com

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it”
--Yogi Berra
Ronald D. Edge
Retired from Indiana University Mar 1, 2011

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it.”
--Yogi Berra
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform