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

  • Question

  • 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

    Thursday, September 24, 2020 6:13 AM

All replies