//得到自定义的list var list = schoolGradeClassModelList.Select(x => new DropDownListData() { DataTextField = x.gradename, DataValueField = x.grade }).ToList(); //新的类 public class DropDownListData { /// <summary> /// 绑定的数据名称
Try this: If your collection was 'example' db.example.update({}, {$unset: {words:1}}, false, true); Refer this: http://www.mongodb.org/display/DOCS/Updating#Updating-%24unset UPDATE: The above link no longer covers '$unset'ing. Nic Cottrell's comme