object must implement IConvertible error in linq query to select two rows

user2703160

I have an Excel sheet , I need to fetch two columns values - I have written a Linq query -

Error:

contextSwitchDeadLock was detected error at line

Query:

select new { Description = typeDescription.Description ,
VehicleKey = typeDescription.VehicleKey });

how can i fix this error - i want to fetch two coulmns value from the same Excel sheet , from a single linq Query.

sudhAnsu63

I think its due to null values

try like this.

select new { Description = Convert.ToString(typeDescription.Description) , 
    VehicleKey = Convert.ToString(typeDescription.VehicleKey) });

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Object must implement IConvertible error when passing an array to stored procedure

分類Dev

Error:A query body must end with a select clause or a group clause

分類Dev

Jpa select query to a new object gives error

分類Dev

How to select two column values in my linq to sql query?

分類Dev

Combine two rows in select query having same id's

分類Dev

__construct() must implement interface error

分類Dev

__construct() must implement interface error

分類Dev

LINQ to SQL - select query

分類Dev

Query with broken sub-select should result in error but returns rows

分類Dev

LINQ select into object

分類Dev

LINQ select into object

分類Dev

linq query "must be reducible node" error in Asp.Net web application

分類Dev

Postgres Throws Error When using Two select statement in One query

分類Dev

LINQ Equal Operator Error in Query

分類Dev

When listIterator is used as a reference type, the object assigned to it must implement it?

分類Dev

Azure DocumentDb error "Query must evaluate to IEnumerable"

分類Dev

using PDO object for a Select query

分類Dev

Error that I must implement a function in a class even though function is defined

分類Dev

How to Join two dictionary collections linq query

分類Dev

How to select specific rows in PostgreSQL query?

分類Dev

Select rows that were not selected in a previous query

分類Dev

Select count of rows in two other tables

分類Dev

Select rows with excat two same entries in a column

分類Dev

Select every two rows if they begin with the same name

分類Dev

Oracle select rows from a query which are not exist in another query

分類Dev

LINQ Select Distinct By One Column Timeout Error

分類Dev

LINQ Select rows mith "max"バージョン

分類Dev

ChildEventListener must implement onChildChanged

分類Dev

JPA Native Query select and cast object

Related 関連記事

  1. 1

    Object must implement IConvertible error when passing an array to stored procedure

  2. 2

    Error:A query body must end with a select clause or a group clause

  3. 3

    Jpa select query to a new object gives error

  4. 4

    How to select two column values in my linq to sql query?

  5. 5

    Combine two rows in select query having same id's

  6. 6

    __construct() must implement interface error

  7. 7

    __construct() must implement interface error

  8. 8

    LINQ to SQL - select query

  9. 9

    Query with broken sub-select should result in error but returns rows

  10. 10

    LINQ select into object

  11. 11

    LINQ select into object

  12. 12

    linq query "must be reducible node" error in Asp.Net web application

  13. 13

    Postgres Throws Error When using Two select statement in One query

  14. 14

    LINQ Equal Operator Error in Query

  15. 15

    When listIterator is used as a reference type, the object assigned to it must implement it?

  16. 16

    Azure DocumentDb error "Query must evaluate to IEnumerable"

  17. 17

    using PDO object for a Select query

  18. 18

    Error that I must implement a function in a class even though function is defined

  19. 19

    How to Join two dictionary collections linq query

  20. 20

    How to select specific rows in PostgreSQL query?

  21. 21

    Select rows that were not selected in a previous query

  22. 22

    Select count of rows in two other tables

  23. 23

    Select rows with excat two same entries in a column

  24. 24

    Select every two rows if they begin with the same name

  25. 25

    Oracle select rows from a query which are not exist in another query

  26. 26

    LINQ Select Distinct By One Column Timeout Error

  27. 27

    LINQ Select rows mith "max"バージョン

  28. 28

    ChildEventListener must implement onChildChanged

  29. 29

    JPA Native Query select and cast object

ホットタグ

アーカイブ