When I try to use LINQ to SQL, I get the following error:
"Data type(s) of the type parameter(s) in method 'Public Sub InsertAllOnSubm it(Of TSubEntity As TEntity)(entiti es As System.Collecti ons.Generic.IEn umerable(Of TSubEntity))' cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error."
Where do I need to specify the data types explicitly? In my
statement, or where I declare the variables? (Already typed everything to match my SQL DB in the variable declarations, so if that's correct, I did something wrong)
KK
"Data type(s) of the type parameter(s) in method 'Public Sub InsertAllOnSubm it(Of TSubEntity As TEntity)(entiti es As System.Collecti ons.Generic.IEn umerable(Of TSubEntity))' cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error."
Where do I need to specify the data types explicitly? In my
Code:
DB.Items.InsertAllOnSubmit(newCatItem)
KK
Comment