//Command menthods public void deleteUser(string firstName, string lastName, string emailAddress) { doesUserExist(firstName, lastName, emailAddress); //Bug: dbContext is getting disposed even before the delete is happening. //using (commandObject) { commandObject.delete <iPoco>(getUser(emailAddress)); } }
void iRepoCommand <iPocoType> .delete <anotherPocoTypePlaceholder>(params anotherPocoTypePlaceholder[] pocosTobeDeleted) { Console.WriteLine("Cached Repo"); _iRepoCommandInjection.delete <anotherPocoTypePlaceholder>(pocosTobeDeleted); }