Click here to Skip to main content
12,078,370 members (48,710 online)
Click here to Skip to main content
Add your own
alternative version

Stats

10.2K views
Posted

Solution to annoying error 0029 - Cannot convert type 'T' to 'System.Data.Linq.Link'

, 29 Aug 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Finally found a solution to the annoying LINQ to SQL dbml error: CS0029 : Cannot implicitly convert type 'int' to 'System.Data.Linq.Link'.

I've been frustrated for a while about this...

SQL dbml error: CS0029 : Cannot implicitly convert type 'int' to 'System.Data.Linq.Link<int>'

Every time I change the DBML file, some errors appeared in the generated code... then I had to correct the problem in the code manually..... (the link fields needed '.Value' added to the assigned variable).

No more, me says - finally stopped being lazy and checked what the problematic fields had in common and a few seconds later, all was calm, and error free compilations were ahead.

Solution: Set 'Delay Loaded' property of the problematic field to 'False'. All done!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Itai Basel
Software Developer (Senior)
Israel Israel
No Biography provided

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.160212.1 | Last Updated 29 Aug 2011
Article Copyright 2011 by Itai Basel
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid