码迷,mamicode.com
首页 > 编程语言 > 详细

EF 取出demical数据,但需要去点小数,排序

时间:2017-12-08 12:18:49      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:creat   val   false   enabled   desc   except   class   ble   col   

try
            {
                BasePaperWeightDAL.Get(o => o.IsDeleted == false && o.IsEnabled == true).OrderByDescending(o => o.Sort).
                    ThenByDescending(o => o.CreateTime).ToList().ForEach(o =>
                    {
                        if (o.WeightValue != null)
                        {
                            o.WeightValue = Convert.ToInt32(o.WeightValue);
                        }
                        LstBasePaperWeight.Add(o);
                    });
            }
            catch (Exception ex)
            {
                
            }

  

EF 取出demical数据,但需要去点小数,排序

标签:creat   val   false   enabled   desc   except   class   ble   col   

原文地址:http://www.cnblogs.com/ouylvr0625/p/8004226.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!