怎么用c#向mongodb中添加数据
展开全部
StringBuilder sb=new StringBuilder();
foreach (var Student in jing)
{
sb.AppendFormart("姓名={0},Nameid={1},性别={2},班级={3},专业={4}",Student.姓名,Student.Nameid,Student.性别,Student.班级,Student.专业);
}
this.textBox1.text=sb.tostring();
foreach (var Student in jing)
{
sb.AppendFormart("姓名={0},Nameid={1},性别={2},班级={3},专业={4}",Student.姓名,Student.Nameid,Student.性别,Student.班级,Student.专业);
}
this.textBox1.text=sb.tostring();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询