Esempio n. 1
0
    public void ChangeSet()
    {
        User user = new User();

        user.Id     = 1L;
        user.Name   = "John Dow";
        user.Status = EAccountStatus.ACTIVE;
        proxy.Write(user);

        IdQuery <User>       idQuery      = new IdQuery <User>(1L);
        IChangeResult <User> changeResult =
            proxy.Change <User>(idQuery,
                                new ChangeSet().Set("Name", "Testing"));

        if (changeResult.NumberOfChangedEntries == 0)
        {
            Console.WriteLine("Entry does not exist");
        }
    }