That being said, it would be cool if we can see NHProf or SQL Prof output
for this query.

Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Sat, Apr 24, 2010 at 4:30 PM, Oskar Berggren <oskar.bergg...@gmail.com>wrote:

> Do you have an actual error?
>
> How do you know it's "not enclosed in single quotes"?  I'm not very
> familiar with the LINQ-implementation, but shouldn't the values be
> sent using parameterized queries. No enclosing or escaping necessary.
>
> /Oskar
>
>
> 2010/4/24 Sam <sam....@gmail.com>:
> > I'm new to nh so I could be doing something wrong, but here's my
> > issue:
> >
> > I have an object that has a string property and I'm doing a NHib.Linq
> > query, but the string portion is never enclosed in single quotes.  In
> > the meantime, I had to handwrite the query.
> >
> > code:
> >
> > var value = session.Linq<MyEntity>().Where(x => x.Id ==
> > otherObject.Id);
> >
> >
> > Yes, you are seeing this correctly, the legacy database has certain
> > Ids as strings.  Could that be the issue?
> >
> > Sam
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> > To post to this group, send email to nhus...@googlegroups.com.
> > To unsubscribe from this group, send email to
> nhusers+unsubscr...@googlegroups.com<nhusers%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to nhus...@googlegroups.com.
> To unsubscribe from this group, send email to
> nhusers+unsubscr...@googlegroups.com<nhusers%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhus...@googlegroups.com.
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to