我试图在ASP.NET项目的类图文件上显示集合关联。
我想展示Metrics(这是一个列表)与Metric表以及Statistics之间的关系。
这是DBConnection代码:
public class Metric
{
[PrimaryKey, AutoIncrement, Column("id")]
public int? Id { get; set; }
public string MetricDate { get; set; }
public DeviceType DeviceType { get; set; }
public string MetricValue { get; set; }
public int DeviceId { get; set; }
}
度量标准,它与DBConnection位于相同的名称空间:
strPath = "\\ecs.zspi.company.de@SSL\DavWWWRoot\Folder\Test.xlsm"
strMacro = "VV.VVImport2" '
Set objApp = CreateObject("Excel.Application")
objApp.Visible = True
objApp.DisplayAlerts = False
objApp.AskToUpdateLinks = False
objApp.AlertBeforeOverwriting = False
objApp.FeatureInstall = msoFeatureInstallNone
Set wbToRun = objApp.Workbooks.Open(strPath)
objApp.Run strMacro
wbToRun.SaveAs "\\ecs.zspi.company.de@SSL\DavWWWRoot\Folder\Test.xlsm"
wbToRun.Close False
objApp.Quit
但是当我单击“显示为收藏夹关联”时:
我收到以下错误: