10 Nov, 2008
Linq To SQL Entity Data Context InsertOnSubmit vs Attach
Posted by: kyanachik In: Yahoo YUI
After writing Unit tests lately I’ve been trying to test my business logic (which is all done in the Entity Manager) without actually submitting data to the database. I’ll create my Items and Customers and do an InsertOnSubmit to get them into the Entity Manager context, but never call SubmitChanges().
This gets the data into the [...]