There is a huge difference though between these two. In the first scenario you can change whatever you want. In the second scenario you can't do anything that you couldn't by issuing an UPDATE DML statement directly - as that is simply translated to an UPDATE statement. And that is why it is outside the change tracker as it executes only on the RDBMS side.
@MilanJovanovicTech3 ай бұрын
Also doesn't run interceptors
@ВладиславКовдря-п5о3 ай бұрын
And how to raise domain event in this case to show that some entities changed?
@MilanJovanovicTech3 ай бұрын
You can't
@justgame5508Ай бұрын
Using these methods you sacrifice patterns and ‘best practices’ for performance