2011-03-24 5 views
0

webforms 사이트를 MVC-3으로 변환하고 UserProfileModel을 뷰에 전달하려고합니다. 하나; 내 사용자 지정 공급자 여기ProfileCommon을 MVC로 멋지게 재생하는 방법

public class UserProfileModel:DFW.Providers.ProfileCommon 
{ 
    public UserProfileModel(string userName,bool IsAuthenticated) 
    { 
     this.Initialize(userName, IsAuthenticated); 

    } 

에서 내 UserProfileModel 클래스를 파생하고있는 문제는 그러므로 내가 잘이 게임을 만들 수있는 간단한 방법입니다 무엇

@foreach (var item in Model) { 
} 

을 할 수 없어, ProfileCommon이 열거 할 수 없습니다입니다 MVC와 함께?

답변

0

제공자 모델이 훌륭하지 않고 생성자 삽입을 지원하지 않습니다.

관련 문제