question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

some time i use linq2db

Mapping of column Name value failed, see inner exception for details | Input string was not in a correct format.   
   at LinqToDB.Expressions.ConvertFromDataReaderExpression.ColumnReader.GetValue(IDataReader dataReader)
   at lambda_method(Closure , IQueryRunner , IDataReader )
   at LinqToDB.Linq.QueryRunner.Mapper`1.Map(IQueryRunner queryRunner, IDataReader dataReader)
   at LinqToDB.Linq.QueryRunner.<ExecuteQuery>d__9`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

Environment details

linq2db version: 2.6.2 Database Server: sql server 2017

Framework version: .NET Framework 4.6.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
sdanylivcommented, Jan 11, 2019

As a quick workaround i suggest to rewrite your query in more effective way:

clientId = db.ClientIds
    .Where(r => r.Key == key && r.IsActive == true)
    .Select(r => (int?)r.Id)
    .FirstOrDefault();
1reaction
sdanylivcommented, Jan 11, 2019

I see, will try to reproduce.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Assistant, your own personal Google
Meet your Google Assistant. Ask it questions. Tell it to do things. It's your own personal Google, always ready to help whenever you...
Read more >
Google Assistant - Apps on Google Play
Google Assistant is an easy way to use your phone and apps, hands-free. Get Google Assistant for hands-free help. It can help you...
Read more >
Google Assistant Help
Official Google Assistant Help Center where you can find tips and tutorials on using Google Assistant and other answers to frequently asked questions....
Read more >
Access Google Assistant with your voice - Android
Google Assistant provides hands-free help on your Assistant-enabled phone, ... Turn on "Hey Google" and teach Google Assistant to recognize your voice.
Read more >
Google Assistant on the App Store
Set reminders, get quick answers, find directions with Google Maps, and more while on-the-go with the help of your Google Assistant. With the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found