2019年11月1日 星期五
linq字串轉數字及數字轉字串
var products =db.AFM_Product.AsEnumerable()
.Where(m=>m.ProductName.Contains(str_Product))
.OrderBy(m => int.Parse(m.ProductID)).ToList();
//需要把productID轉成int來排序時
var query = from Parts in db.AFM_Product.AsEnumerable()
where Parts.UnitPathId==str_UnitPathId
where Parts.ProductName.Contains(str_ProductName)
orderby int.Parse(Parts.ProductID)
select Parts;
訂閱:
張貼留言 (Atom)
WPF聊天室应用(ASP.NET Core SignalR)
WPF聊天室应用(ASP.NET Core SignalR) https://www.bilibili.com/video/BV1Q741187Si?p=2 https://www.bilibili.com/video/BV1UV411e75T?from=search...
-
https://dotblogs.com.tw/v6610688/2015/02/19/iis_office_access_word_excel_com_interop_api_configuration https://dotblogs.com.tw/gelis/archi...
-
key: Network Sniffer in .NET https://www.google.com/search?q=Network+Sniffer+in+.NET&oq=Network+Sniffer+in+.NET&aqs=chrome..69i57...
-
int [] intArray = new int [] { 1 , 5 , 9 , 4 }; Array.Clear(intArray, 0 , intArray.Length); // 清空第0到第intArray.Length個索引的元素.(包括第0個,不包括第in...
沒有留言:
張貼留言