Many to Many Relation entry is not removed.
Issue #111
duplicate
Public class MailDetail { [PrimaryKey] public int Id { get; set; } public string Name { get; set; }
[ManyToMany(typeof(MailLabelMapper))]
public List<LabelDetail> Labels { get; set; }
}
public class LabelDetail { [PrimaryKey] public int Id { get; set; } public string Name { get; set; }
[ManyToMany(typeof(MailLabelMapper))]
public List<MailDetail> Mails { get; set; }
}
public class MailLabelMapper { [PrimaryKey, AutoIncrement] public int Id { get; set; }
[ForeignKey(typeof(LabelDetail))]
public int LabelId { get; set; }
[ForeignKey(typeof(MailDetail))]
public int MailId { get; set; }
}
when I delete an instance of LabelDetail the entry in relationtable is not removed
Comments (3)
-
reporter -
No, it's not fixed. Cascade deletion hasn't been implemented
-
- changed status to duplicate
Duplicate of #21.
- Log in to comment
Sorry its a duplicate issue.Issue #21 tells the same story. Is this issue fixed??