I would attempt to write a fix, but this isn't just a bug. There's a design issue to be resolved here as to how to go about implementing this.
One idea I have is to create an extension method, WithUserType(this object obj, IType type) that will be used to inform the LINQ provider as to the type (UserType, etc.). If this sounds like a good idea, would anyone be able to provide a few pointers as to where to look to hook this in? I will take a look and see if I can patch. Thanks. On Mon, Aug 16, 2010 at 10:53 AM, Fabio Maulo <[email protected]> wrote: > Known issue > http://216.121.112.228/browse/NH/component/10120 > > > On Fri, Aug 13, 2010 at 2:54 PM, David Pfeffer <[email protected]>wrote: > >> Hello all, >> >> So I'm having a bit of difficulty trying to build a LINQ to NH Spatial >> provider. Specifically, I have not found a way to specify the user type for >> IGeometry types. So, even though I have the backend LINQ parser code plugged >> in, queries fail due to "No persister for: GeoAPI.Geometries.IGeometry." >> >> In Criteria and HQL specifying the user type is easy. How do I specify the >> user type for a LINQ query so that my backend code is invoked? >> >> Thanks! >> > > > > -- > Fabio Maulo > >
