No mapping exists from object type system.collections.generic.list`1 to a known managed provider native type

  • Thread starter Thread starter rammi P
  • Start date Start date
R

rammi P

Guest
I have passed ids list as parameter to Store procedure but when cal storeprocedure got the error

" No mapping exists from object type System.Collections.Generic.List`1[[System.Nullable`1[[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] to a known managed provider native type "


var idsparam=new sqlparameter
{
parameterName="Ids",
value=request.ids
}
var _addressSetiingspredicate=_dbcontext.database.SqlQuery<BaseNewBusinessAdressSettingModel>(@"Exec SP_AdressSettings @Ids",idsparam).ToList<BaseNewBusinessAdressSettingModel>


Please help me

Thanks

Continue reading...
 
Back
Top