I have in my repository, my method of deleting
public virtual void Deletar(int Id)
{
var entity = _dbSet.Find(Id);
_dbSet.Remove(entity);
}
The problem is that it is deleting even if it is with FK in another table, and I do not want it to delete, what is wrong?