How you determine modified and unchanged?

May 31, 2015 at 8:00 AM
Hi, I face this problem while using this for my work.
I have master entity call M with some ICollection<C> inside. When I send from client (json format) to Controller -- DTO ---> Service.

My Service will convert M_DTO with ICollection<C_DTO> to M's ICollection<C> using AutoMapper or others tool. After that, I just call ..Repository<M>().Update(m);

But I can check for each C entity for unchanged or modified? Only can verify Delete and Add.

Can you show me how you solve this problem? Or just let it all modified while update M entity.