草庐IT

anonymistype2

全部标签

类型'<> f__ anonymistype2`2 [system.String,system.int32]'必须声明默认(参数无)构造函数

我想知道这里是否有人知道为什么我会得到例外System.InvalidOperationException:Thetype'f__AnonymousType2`2[System.String,System.Int32]'mustdeclareadefault(parameterless)constructorinordertobeconstructedduringmapping.从我的linq到SQL查询varquery=(fromchangeincontext.ProductChangeTrackingsfromexpressionincontext.ProductDataQualityRu