2012-01-07 17 views
0

私はASP.NET MVCを初めて使用しています。自分のクラスの1つのプロパティからカスタムデータ型を作成したいと考えています。私はこれが可能であることを知っていますが、残念なことに、私は自分のコードに何が間違っているかを知る知識がありません。ASP.NET MVC - 列挙型を使用したカスタムデータ型

私は次のエラーメッセージになっている:ここで

"Schema specified is not valid. Errors: 
The relationship 'GarethLewisWeb.Models.Photo_Set' was not loaded because the type 
'GarethLewisWeb.Models.Photo' is not available. 
The following information may be useful in resolving the previous error: 
The property 'Orientation' on the type 'GarethLewisWeb.Models.Photo' has a property 
type of 'GarethLewisWeb.Models.Photo+Orientations' which cannot be mapped to a 
PrimitiveType." 

は私が問題を引き起こしていると思う私のPhoto.csクラスのコードです。

助けがあれば助けてください!ありがとう。

答えて