Delete usaved entity

Mar 9, 2015 at 10:31 PM
I i create a entity with NewEntity<???> and if i delete it with the DeleteEntity() when i savechanges i get a error the the reference of the object is not set to a instance of the object

Is there another way to mark a new entity not to be saved?

Mar 9, 2015 at 10:33 PM
will check it, it should not be happening.