Est-ce possible, DbContext.SaveChanges () renvoie 0 mais n'a pas une exception?

J'utilise Entity Framework 4.0. Est-il possible que SaveChanges() retourne 0 mais ne lance pas d'exception? Par exemple, après l'ajout d'.

Voici mon code:

try
{
    _context.CodeProducts.Add(entity);
    _context.SaveChanges();

    //Shell I control return result from SaveChanges() in here.
    //However doesn't throw an exceoption?

    return new MethodResponse()
    {
        ResultText = "Successful",
        Type = MethodResponse.ResponseType.Succeed
    };
}
catch (OptimisticConcurrencyException exc)
{
    throw exc;
}
catch (UpdateException exc)
{
    throw exc;
}
catch (Exception exc)
{
    throw exc;
}

source d'informationauteur cagin