public void Test2() { var entity1 = new MyEntity { Class = "123", Name = "aaa", Comment = "comment", }; var entity2 = new MyEntity { RegisterDate = DateTime.Now, }; entity2.Accept(entity1, m => new { m.Class }); entity2.Accept(entity1, m => m.Comment); entity2.Accept(entity1, m => m.RegisterDate); Assert.Equal(entity2.Class, entity1.Class); Assert.Equal(entity2.Comment, entity1.Comment); Assert.NotEqual(entity2.Name, entity1.Name); Assert.Null(entity2.RegisterDate); }