Question: I have a `1..*` relationship between `X` and `Y`, where `X` is the parent. When I try and delete record `Y` I get the following exception message:

> 
> Entities in 'Y' participate in the 'FK\_Y\_X' relationship. 0 related 'X' were found. 1 'X' is expected.
> 
> 
> 

I am currently trying to delete the record in a generic, disconnected manner in the following way:

```
public bool Delete(TEntity entity)
{
    if (entity == null)
    {
        return false;
    }
    try
    {
        var entry = _context.Entry(entity);
        entry.State = EntityState.Deleted;
        _context.SaveChanges();
        return true;
    }
    catch
    {
        return false;
    }
}

```

The entity that is passed in is loaded with `AsNoTracking()` on the same context.

Any ideas?

Answer: 
Try to add a public property YId to X which will hold the connection to Y,
this solved my issue, i use Breeze with EF6 and i've got the same error.

```
Class Y 
{
    public int Id { get; set; }
    public ICollection<X> Xs { get; set; }
}

Class X 
{
    public int Id { get; set; }
    public int YId { get; set; }   
    public Y Y { get; set; }
}

```
For me my record in my database had a NULL value for the FK column in question. I populated that column with a valid value and the record was able to be removed via EF Remove method.