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
|
Hi, I am trying to get some data from an MS SQL 2005 attached database, but I get the following error: Exception has been thrown by the target of an invocation. Yet, the column is defined within the database and it has the same name (can't figure out how to attach the image.) The code that I am using is: var user = (from record in Repository.SystemUsers where record.UserName == loginName && record.Source == source select record).SingleOrDefault();
Craig |
|
|
Make sure the Entity Track Updated Time is set to true if the column does exist, otherwise it must be set to false. Are you using a query or stored procedure to obtain the data? If so, the column must exist in the resultset. Joe Feser |
|
|
Thanks Joe, I found out what the problem was - I had misspelt UpdatedOn in the database.
Craig |
|