//A shared view that all other views should use
public abstract class SharedView : AbstractSparkView
{
public string BasePath = string.Empty;
}
public abstract class ApplicationView : SharedView
{
public Application Application { get; set; }
}
然后我为Spark设置如下
var settings = new SparkSettings()
.SetPageBaseType(typeof(ApplicationView )) //What should go in here!?
.AddNamespace("SomeNameSpaces")
;