public void BeforeDelete(IDatabaseContext context, User data) { context.BatchDelete <Database.UserContact>(c => c.User.Id == data.Id); }