message contains no documents code:13066stackoverflow上面的回答是: What version of the C# driver are you using? Can you provide a stack trace? Is there any chance you are calling InsertBatch with an empty batch? 然后看过自己的代码,发现在用InsertBatch方法时,参数items数据集中没有数…
这是一个控制台程序,作用是通过Code First创建数据库. 1.添加EntityFrameWork的引用. 2.添加类 CodeFirstTest1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Entity; namespace ConsoleApplication…