简体   繁体   中英

Entity Framework - class not found

I have a problem regarding a Silverlight application that uses ADO Entity Framework 4.0. The application can't find one class auto-generated by entity framework, while the other classes auto-generated it finds.

I solved the error. The problem was in the compilation of the code. The class had never been used before, so it was not autogenerated in the *. G.cs (autogenerated file). To compile the class I used in the web part of the solution, and compiled it. After filling me are found in the file *. G.cs part of Silverlight.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM