I have a public table and a view like that:
[View(Accessor = "MyHeroes", Public = true)]
public static IQuery<Hero> MyHeroes(ViewContext ctx)
{
return ctx.From.Hero().Where(h => h.Owner.Eq(ctx.Sender));
}
If I subscribe to the public table and update the row, I receive OnUpdate callback.
If I subscribe to the view and update the row, I receive OnInsert + OnDelete callbacks.
Here is how it looks in the logs:
- [14:13:59] Create an entry.
- [14:14:07] Update it.
Any ideas why subscribing to a View behaves differently from subscribing to a public table?