我在SQL视图中提取了以下数据。
1 SH0032516 Dairy Farmers of America 100094 Capstone 4001 50lb 17500.00000000000000000000 ENTERPRISE
1 SH0032516 Dairy Farmers of America 106525 Capstone 4002 50lb 25000.00000000000000000000 ENTERPRISE
2 RE031159 MSDS/Ingredients Solutions 104508 Carrageenan WG-16 4000.00000000000000000000 ENTERPRISE
3 t101 Internal Transfer 100057 BI Ult Mus Pro Van 2lb 0.8oz 8448.00000000000000000000 ENTERPRISE
3 t101 Internal Transfer 105302 HB Q.M. Load CnC 3.3lb Cnd 400.00000000000000000000 ENTERPRISE
4 Pallets 0.00000000000000000000 ENTERPRISE
5 OPEN 0.00000000000000000000 ENTERPRISE
6 OPEN 0.00000000000000000000 ENTERPRISE
7 OPEN 0.00000000000000000000 ENTERPRISE
8 SH0032513 Glanbia Foods Inc S101066 Provon 290 15kg 8829.42300000000000000000 ENTERPRISE
9 OPEN 0.00000000000000000000 ENTERPRISE
10 OPEN 0.00000000000000000000 ENTERPRISE
然后在我的MVC应用程序Controller中,我有以下代码行:
return View(await db.vwDockDoorDatas.ToListAsync());
出于某种原因,这个问题的重点是.ToList()正在错误地进行翻译。我在.ToList()
之后得到了这个1 SH0032516 Dairy Farmers of America 100094 Capstone 4001 50lb 17500.00000000000000000000 ENTERPRISE
1 SH0032516 Dairy Farmers of America 106525 Capstone 4002 50lb 25000.00000000000000000000 ENTERPRISE
2 RE031159 MSDS/Ingredients Solutions 104508 Carrageenan WG-16 4000.00000000000000000000 ENTERPRISE
3 t101 Internal Transfer 100057 BI Ult Mus Pro Van 2lb 0.8oz 8448.00000000000000000000 ENTERPRISE
3 t101 Internal Transfer 105302 HB Q.M. Load CnC 3.3lb Cnd 400.00000000000000000000 ENTERPRISE
4 Pallets 0.00000000000000000000 ENTERPRISE
4 Pallets 0.00000000000000000000 ENTERPRISE
4 Pallets 0.00000000000000000000 ENTERPRISE
4 Pallets 0.00000000000000000000 ENTERPRISE
8 SH0032513 Glanbia Foods Inc S101066 Provon 290 15kg 8829.42300000000000000000 ENTERPRISE
4 Pallets 0.00000000000000000000 ENTERPRISE
4 Pallets 0.00000000000000000000 ENTERPRISE