linq查询结果datetime类型转string类型

var list = new SupplierLogic().GetSupplier(pageSize, pageIndex).Select(q => new
                {
                    SupplierID = q.SupplierID,
                    SupplierAccount = q.SupplierAccount,
                    SupplierName = q.SupplierName,
                    SupplierType = q.SupplierType,
                    AddTime = ((DateTime)q.AddTime).ToString(),
                    AppKey = q.AppKey,
                    IsLocked = q.IsLocked
                }).ToList();

对datetime类型结果进行二次查询.

posted @ 2013-12-30 14:09  ``炯``  阅读(2134)  评论(0编辑  收藏  举报