2011-12-29 9 views
2

Orchard 사이트에 위젯을 추가하려고하는데 ContentPartRecord에서 상속 한 새 콘텐트 파트를 만들었습니다. 그것은 잘 구축하지만 Orchard.exe 실행 이동하거나 내가 사이트를 탐색 할 때 나는이 오류가 발생하는 경우 :ContentPartRecord를 사용하면 런타임 오류가 발생합니다.

using System.ComponentModel.DataAnnotations; 
using Orchard.ContentManagement; 
using Orchard.ContentManagement.Records; 
using System.Collections.Generic; 

namespace Hjn.Models 
{ 
public class PropertySearchRecord : ContentPartRecord 
{ 
    public virtual List<string> PropertyTypes { get; set; } 
    public virtual List<string> Locations { get; set; } 
    public virtual List<double> MinimumPrices { get; set; } 
    public virtual List<double> MaximumPrices { get; set; } 
} 

public class PropertySearchPart : ContentPart<PropertySearchRecord> 
{ 
    [Required] 
    public List<string> PropertyTypes 
    { 
     get { return Record.PropertyTypes; } 
     set { Record.PropertyTypes = value; } 
    } 

    [Required] 
    public List<string> Locations 
    { 
     get { return Record.Locations; } 
     set { Record.Locations = value; } 
    } 

    [Required] 
    public List<double> MinimumPrices 
    { 
     get { return Record.MinimumPrices; } 
     set { Record.MinimumPrices = value; } 

    } 

    [Required] 
    public List<double> MaximumPrices 
    { 
     get { return Record.MaximumPrices; } 
     set { Record.MaximumPrices = value; } 
    } 
} 
} 

내가 꽤 함께 잃었어요 : 여기

Exception Details: NHibernate.MappingException: Association references unmapped class: System.string 

내 클래스 이 하나. 원하는 경우 스택 추적을 게시 할 수 있습니다. 바로 알려주세요. 감사!

+0

혼란스러운 목록 열처럼 보입니다. –

답변

관련 문제