In this example, only the LastChangeDate and LastChangeTime will be updated. The key is to call the method am_RecordAllChangedProperties after the properties are set.

 

 protected override void am_AfterInsertUpdateDelete(AB_InputArgsBase inputArgs, AB_ReturnArgsBase returnArgs)
        {

            if (returnArgs.ap_IsSuccess)
            {
                var initSettingDal = new InitSettingDALForSQL();

                var initEntity = new InitSettingEntity()
                {
                    LastChangeDate = int.Parse(DateTime.Now.ToString("yyyyMMdd")),
                    LastChangeTime = int.Parse(DateTime.Now.ToString("HHmmss")),
                };

                initEntity.am_RecordAllChangedProperties();

                var q = new AB_Query();
                q.am_AddInClause(InitSettingEntity.NameProperty, "IN", new List<string>() {"FWSA"});

                var ra = initSettingDal.am_Update(new AB_UpdateInputArgs<InitSettingEntity>(initEntity) { ap_Query = q}.am_InitializeWith(inputArgs));

                if (!ra.ap_IsSuccess)
                {
                    if (ra.ap_Messages != null && ra.ap_Messages.Count > 0)
                    {
                        returnArgs.ap_Messages.AddRange(ra.ap_Messages);
                    }
                }

            }

        }