Asp.net mvc MVC2复杂类型visual studio 2010.net framework 4

Asp.net mvc MVC2复杂类型visual studio 2010.net framework 4,asp.net-mvc,linq-to-sql,asp.net-mvc-2,Asp.net Mvc,Linq To Sql,Asp.net Mvc 2,我有一个存储过程usp\u getCashCommissionCustomer如下: Select cw.Customercode, name, state as Province, City, Suburb, Balance As HMCommission, MBalance as MTNCommission from customerwallet cw inner join customer cu on cw.customercode = cu.cus

我有一个存储过程
usp\u getCashCommissionCustomer
如下:

Select 
    cw.Customercode, name, state as Province, City, Suburb,
    Balance As HMCommission, MBalance as  MTNCommission 
from 
    customerwallet cw
inner join
    customer cu on cw.customercode = cu.customercode
where 
    iscash = 1
    and (balance + mbalance) > 0
order by 
    customercode
单击
customercode
我应该打开下表的创建视图

CREATE TABLE [dbo].[CustomerLedger]
(
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
    [CustomerCode] [varchar](25) NULL,
    [TransactionType] [varchar](1) NULL,
    [Description] [varchar](30) NULL,
    [TransactionDate] [datetime] NULL,
    [Amount] [float] NULL,
    [IsProcessed] [bit] NULL
) ON [PRIMARY]
请帮帮我


我是ASP.NET MVC 2的新手,不知道您是否在使用ORM。如果您不是任何ORM,那么您可能会看到使用前面提到的存储过程填充视图的方法。如果您正在使用ORM,例如L@S或者您可以从实体框架开始。
如果您想要弹出视图,可以找到教程

我正在使用实体框架。我正在网格上显示存储过程的输出。我已经为网格的输出创建了complextype。当我点击customercode时,它会打开CustomerEdge模型的创建视图。然后按照jquey弹出窗口的教程进行操作