私はMVCを初めて使い、Formsの使用に慣れています。私の質問は、私は次のフィールドを持つ4つのテーブルの基本的なモデルのセットアップがあると仮定します。MVCテーブル間の関係の比較
Branch
------
Branch_Nu
Branch_Address
Orders
-----
Order_Nu
Branch_Nu
Product_Nu
Customer_Nu
totcost
Products
---------
Product_Nu
Product
Price
Customer
----------
Customer_Nu
Name
Address
City
St
Zip
私は
I want to see all orders for a branch;
Branch->orders
I want to see all orders for a customer from a particular branch;
Branch->orders->products
|-->customer
I want to see all orders for a customer regardless of branch they
purchased from;
customer->orders->branch
I want to see all branches that sold a particular product;
products->orders->Branch
I want to see which customers bought a particular product;
products->orders->customer
質問は、私は別のコントローラメソッドに提出されているのと同じ基本的なモデルを使用して、異なるシナリオに異なるコントローラを使用するか、または行うことができますされ、次のシナリオに興味さまざまなシナリオのために異なるモデルが必要であり、異なるコントローラメソッドに提出されますか?
フォームを使用していた場合、MVCでは各シナリオごとに異なる選択ステートメントとフォームがありますか?