This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I noticed that I can't use "Key" as a column name. Whenever I fire the code below it throws an exception "Incorect syntax near the "Key"". I tried to name it "[Key]" but that failed to.
string encodedKey = "whatever"; var query = new Query { AggregateName = "Basic", QueryExpression = (Entity.Attribute("Key") == encodedKey) }; var item = unitOfWork.FindOne(query); |
|
|
Hi Erxar, You can enable identifier quoting on LightSpeedContext or config using QuoteIdentifiers. Example: <add name="SQLite" OR with code _context = new LightSpeedContext(); Regards,
|
|
|
That solved it. Thank you.
|
|