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 <[email protected]>: > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
