0

I am working on Fluent Nhibernate and getting the following error: No persister for: System.Data.Entity.DynamicProxies.Customer_3FF392FD8867C34D66C0BEB65D29B9B13BAFD2651E0DD73A797E67ADE1455B21

Please tell me that how can I remove the proxy that are generated during mapping. Thanks In advance.

Nikhil Vasdev
  • 183
  • 1
  • 3
  • 14

1 Answers1

0

Just call:

session.GetSessionImplementation().PersistenceContext.Unproxy(entity)

Ricardo Peres
  • 13,724
  • 5
  • 57
  • 74