0

我需要一些关于使用 LightSpeed 在模板中铸造模型的帮助。

当我使用实体框架时,一切都很好,但是使用 LS 我可以说:

@inherits NancyRazorViewBase<dynamic>
@var Projects = Model.Projects // It's a collection of Project Enitities 
@foreach(MyAssemblyNamespace.Models.Project project in Projects) {
    // ...
}

因为我会收到错误:

[CS0012] Line: 18 Column: 10 - The type 'Mindscape.LightSpeed.Entity`1' is defined 
in an assembly that is not referenced. You must add a reference to assembly 
'Mindscape.LightSpeed, Version=5.0.2597.0, Culture=neutral, 
PublicKeyToken=360c8f37b466ebb2'. (show)
4

0 回答 0