Quantity and licensing basis can be specified

~/Purchase/SelectedProduct view and the CatalogEntryModel have been
changed to facilitate a user entering a quantity.
RecordPurchase method in PurchaseService class has been adjusted to add
quantity of purchased items to record.
OrderItem added to StoreModel

OrderItem table added to the model for this application.
ViewModel for orderItem has been created, and a repository and a service
have been added to the solution to allow order items to be recorded.
Updates to PurchaseRecord

Changes to the PurchaseRecord class and associated classes have become
necessary due to the relationship between PurchaseRecord and OrderItem
Update to Purchase Controller and Views

Actions in PurchaseController updated to facilitate the OrderItems
associated with each PurchaseRecord. As such, the ListPurchases and
ShowPurchasedInfo views have been adjusted to add and view OrderItems
when a customer makes a purchase.
Context activity changed from string to Func

Contructors for repositories modified to include a Func of
StoreDbEntities, rather than a string ConnectionString. Better
implementation of use and disposal of connection to database.
OrderItemService moved to correct folder

OrderItemService file moved from Controllers folder to Services folder.
Changes made to Data Model

PurchaseRecord altered by removal of redunctant ActivationKey, LicenseId
and CatalogEntryId fields.
Primary key of OrderItem table altered, now is a compound key of
OrderItemNo and PurchaseRecordId (PurchaseRecordId is the FK to the
PurchaseRecord table).
(Web.config altered to handle errors in RemoteOnly mode)
SelectedProduct View Model created

Quantity selection by customer of the store sample is dealt with through
the implementation of a SelectedProductModel, which obtains details
about the selected item from the CatalogEntry on which it is based, and
has an added Quantity property. Quantity is posted back based on user
selection, and a purchase record and associated order items are created.