ErikEJ / EntityFramework6PowerTools

This is the codebase for Entity Framework 6 Power Tools Community Edition, and modern EF 6 providers for SQL Server and SQL Server Compact
Other
183 stars 27 forks source link

Problem creatings Views #76

Closed jonius40 closed 3 years ago

jonius40 commented 3 years ago

Hi, I am trying to create compiled views, using Generate Views . I am getting object of type System.Linq.ExpressionExpression.Func2 {name of the object}, System Nullable1 [ System.Decimal] cannot be converted to type. I am using Visual Studio community 2019 with EF 6.1.2

King regards John Papoutsidis

ErikEJ commented 3 years ago

Can you (privately) share a repro project?

jonius40 commented 3 years ago

Hi Erik, I will try to issolate the model class with the problem and try to reproduse it. After that I will send you the project.

On Tue, Jan 19, 2021 at 8:22 AM Erik Ejlskov Jensen < notifications@github.com> wrote:

Can you (privately) share a repro project?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ErikEJ/EntityFramework6PowerTools/issues/76#issuecomment-762628499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQMCT7TS6AG4SSELZEDZTDS2UQKTANCNFSM4WH3OBUA .

jonius40 commented 3 years ago

Well the problem is related with a custom Attribute used with a decimal property. When i created a new project with the same attribute and property for testing, power tools works fine. Both projects have framework 4.5. The main project keeps having the issue.

ErikEJ commented 3 years ago

Unless I get a repro I cannot assist.