用where进行条件查询

newDP.DisasterType = types.Where(t => t.Type == newDP.DisasterType).First().Code;

posted @ 2015-07-13 09:14  西楼月光  阅读(320)  评论(0编辑  收藏  举报