yv989c / BlazarTech.QueryableValues

This library allows you to efficiently compose an IEnumerable<T> in your Entity Framework Core queries when using the SQL Server database provider.
Other
93 stars 6 forks source link

Doesn't work with compiled models #47

Open karl-sjogren opened 9 months ago

karl-sjogren commented 9 months ago

If we use this with compiled models, the special types used behind the scenes breaks the build.

After rebuilding/regenerating our compiled models we got a generated model that references the internal types SimpleQueryableValuesEntity, ComplexQueryableValuesEntity and QueryableValuesEntity (and possibly some more that I didn't catch).

CompiledModels/ComplexQueryableValuesEntityEntityType.cs(3432,35): error CS0122: 'ComplexQueryableValuesEntity' is inaccessible due to its protection level

Got almost 400 variations of that error in different generated files. And since it breaks the build, I need to manually clean this up since rebuilding these files requires the project to build in the first place.

The simplest solution would be to just make these classes public, maybe put into a Internal namespace or something to signal that they shouldn't be used directly by the end user.