标签:简单 pre als new code service each erb substring
var ShopList = ShopService.GetEntities(x => x.IsDelete == false).OrderByDescending(x => x.Sort).GroupBy(x => new { x.Id, x.CityName }).Select(x => new { //Id = x.Key.Id, Name = x.Key.CityName, }).ToList(); string str = string.Empty; foreach (var item in ShopList) { str += ",‘" + item.Name + "‘"; } ViewBag.Str = str.Substring(1);// 城市1,城市2,城市3
标签:简单 pre als new code service each erb substring
原文地址:https://www.cnblogs.com/SeNaiTes/p/8877097.html