Advertisement

07.17.2008 at 05:13PM PDT, ID: 23575395
[x]
Attachment Details

DataSet does not support System.Nullable<> error

Asked by jentel2 in C# Programming Language, .NET

Using VS 2008 . I am getting this error:
DataSet does not support System.Nullable<>

in this line:
 DataTable table = CreateTable<T>();
where T is simple class which has a constructor and some of the constructor paramaters are nullable types. I don't want to change the class.

I am using the CreateTable function in convert a generic list to a datatable.

Is there a generic similar function I can use to convert a generic list to a datatable which works with all types?
Start Free Trial
[+][-]07.17.2008 at 05:28PM PDT, ID: 22031569

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, .NET
Sign Up Now!
Solution Provided By: RedKelvin
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628