support POCO methods and properties in LINQ to Entities
Currently I get the following exception when accessing POCO methods and properties.
NotSupportedException: The specified type member 'Language' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.
![](https://secure.gravatar.com/avatar/10a408b49218d2a41b7ad828c52da0ab?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Craig commented
I have a work around for the Internal setters. Rebuild a DLL that is public just for LINQPad ;)
-
Craig commented
We recently moved an Entity Navigation property to Internal, and made a public method to get a complete collection. Now I can't use LINQPad to perform my queries because it isn't one of the supported entity methods/properties.
I also have a property Language that is based on the first 2 characters of the CultureCode (en-US, en-UK) so I can query and get "any" english text. Because this Language property is not an Entity property I can't use LINQPad...