我知道這個問題已經被問到,但它接縫,我的情況可能會略有不同。我試過「運行自定義工具」,但這裏是奇怪的事情發生的地方:因爲我有2個相關的數據庫(所以2個相關的模型)。如果我在一個模型上運行自定義工具,則會將另一個模型運行,反之亦然(不完整的.cs文件,缺失等)。有沒有人有我想要錯的地方?EntityFramework Schema指定無效
編輯:
完整的錯誤:
An exception of type 'System.Data.Entity.Core.MetadataException' occurred in EntityFramework.dll but was not handled in user code
Additional information: Schema specified is not valid. Errors:
The relationship 'ProductionMasterDataEntityModel.FK_ProductGroup_CostPeriods' was not loaded because the type 'ProductionMasterDataEntityModel.ProductGroup' is not available.
The following information may be useful in resolving the previous error:
The required property 'CstAveOrderQty' does not exist on the type 'SISCOM.Persistance.Models.ProductGroup'.
自定義工具是:TextTemplatingFileGenerator
我不知道,如果它有什麼用asp.net框架,但它是一個asp.net項目,所以我認爲這是值得一提的。
什麼是工具?什麼是錯誤?它如何與ASP.NET相關? – dotctor
eddited the question – Spluf