This project has moved and is read-only. For the latest updates, please go here.

How to load basic POCO objects

Sep 25, 2014 at 3:45 AM

I just started taking a look at Effort and wanted to create a simple POCO object and add it to the context. I'm using this.Set<T>().Add(entity). This attaches the entity to DbSet<T>.Local but I can't access it via DbSet<T> even after calling SaveChanges(). Is there something I'm doing wrong?

Sep 25, 2014 at 3:56 AM
Edited Sep 25, 2014 at 3:57 AM
Never mind. This does work and I was using the debugger incorrectly.

Apologies for wasting your time!