2014-01-27 39 views

回答

0

FluentAPI約爲映射配置,並且代理創建是關於上下文配置。

你可以嘗試:

  1. 只需添加this.Configuration.ProxyCreationEnabled = false;到構造函數。

  2. 使用sealed class'Seal'您的實體。

MSDN

相關問題