Answer the question
In order to leave comments, you need to log in
Why is the Context not cleared on Exception?
Good afternoon! Faced the problem of saving the entity in the database, after an error
dbEntities db;
public RelationshipPeopleRepository(dbEntities context)
{
db = context;
}
public void Create(relationship_people item)
{
db.relationship_people.Add(item);
db.SaveChanges();
}
db.log.Add(item);
db.SaveChanges();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question