All pastes #544006 Raw Edit

Something

public text v1 · immutable
·published 2007-06-06 07:48 UTC
rendered paste body
Midnight Coders Support: 14:30:07
    dataMapper.Connection.DomainObjectAffected += new DomainObjectAffectedHandler(OnDomainObjectAffected);
Midnight Coders Support: 14:30:22
            void OnDomainObjectAffected(DomainObject domainObject, IDataMapper dataMapper, DataMapperOperation operation)
            {
    }
Midnight Coders Support: 14:30:40
    DomainObject is your active record
Midnight Coders Support: 14:30:52
    dataMapper is obviously the data mapper where the change occured
Midnight Coders Support: 14:30:56
    and DataMapperOperation is an enum
Midnight Coders Support: 14:31:05
        public enum DataMapperOperation
        {
            update,
            delete,
            create
        }