Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
SQL Server 2005 will not let you define foreign keys from a view to other objects. You can define indexes on a properly configured view, but not relationships and not primary keys, just regular indexes. The PK definition within the BOMapper allows the BOMapper to specify the primary key when building the partial class for the business object. This allows the business object to properly create the dynamic SQL at runtime that will be used to "insert" or "update" the view. Without a primary key definition, an update from the BO to the database would fail because the WHERE clause of the update would not be able to specify only a single row.
|