因此,我正在使用Jetbrans Rider上的mono在ubunto上开发一个asp.net mvc应用程序。 我尝试通过使用linq to sql进行分组时遇到此错误:
`var query = from product in context.ProductBasket
where product.NoSeller == NoSeller
orderby product.DateCreation ascending
group product by product.NoClient into g
select g;`
System.Data.SqlClient.SqlException
at System.Data.SqlClient.SqlConnection.ErrorHandler (System.Object sender, Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x00066] in <a566c189d19d4271ab58420d6f875b13>:0
at Mono.Data.Tds.Protocol.Tds.OnTdsErrorMessage (Mono.Data.Tds.Protocol.TdsInternalErrorMessageEventArgs e) [0x0000b] in <9f171fcf7d62454d848dc1c7d40c2567>:0
at Mono.Data.Tds.Protocol.Tds.ProcessMessage (Mono.Data.Tds.Protocol.TdsPacketSubType subType) [0x00102] in <9f171fcf7d62454d848dc1c7d40c2567>:0
at Mono.Data.Tds.Protocol.Tds.ProcessSubPacket () [0x0012a] in <9f171fcf7d62454d848dc1c7d40c2567>:0
at Mono.Data.Tds.Protocol.Tds.NextResult () [0x0004a] in <9f171fcf7d62454d848dc1c7d40c2567>:0
at System.Data.SqlClient.SqlDataReader.NextResult () [0x00047] in <a566c189d19d4271ab58420d6f875b13>:0
at System.Data.SqlClient.SqlDataReader..ctor (System.Data.SqlClient.SqlCommand command) [0x00019] in <a566c189d19d4271ab58420d6f875b13>:0
at (wrapper remoting-invoke-with-check) System.Data.SqlClient.SqlDataReader:.ctor (System.Data.SqlClient.SqlCommand)
at System.Data.SqlClient.SqlCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00042] in <a566c189d19d4271ab58420d6f875b13>:0
我打开了Windows和Visual Studio,但并没有遇到这个问题,一切都很好...
有人知道为什么吗?