用where进行条件查询

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

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