c# mongo 返回指定的列

var query= db.GetCollection<Merchant>("merchant").Find(Query<Merchant>.EQ(m => m.Id, id))
                .SetFields(Fields<Merchant>.Include(m => m.Address).Include(m => m.Name));

posted @ 2013-12-23 11:37  郑文亮  阅读(624)  评论(0编辑  收藏  举报