摘要:
直接上代码: static void Main(string[] args) { Database.SetInitializer<BaseDB>(null); BaseDB context = new BaseDB(); var book = new Book { ISBN = "isbn002", Title = "title004" }; context.BookEntity.Attach(book); var stateEntry = ((IObjec... 阅读全文