Background
Trying to steal someone else’s code.
But, as sometimes happens, it does not even compile.
Error Message
Textual
'System.Data.DataRow' does not contain a definition for 'Field' and no extension method 'Field' accepting a first argument of type 'System.Data.DataRow'
Image
Explanation
The error states that
- The System.Data.DataRow object is intrinsically missing the Field Property
- And, that I have not helped to even include an extension method that will provide one
Remediation
As I know I am using LINQ reached for System.Data.DataSetExtensions.
C#
using System.Data.DataSetExtensions;
[…] .Net:- Compile Error – ‘System.Data.DataRow’ does not contain a definition for ‘Field’ and no extension method ‘Field’ accepting a first argument of type ‘System.Data.DataRow’ Link […]