public void Update(SqlQueryReader masterSource) { if (!masterSource.Active) { return; } var masterFieldIndex = MasterAttributeId != Guid.Empty ? masterSource.TryGetAttributeIndex(MasterAttributeId) : masterSource.TryGetAttributeIndex(MasterAttributeName); if (masterFieldIndex >= 0) { Slave.SetParams(SlaveParamName, masterSource.GetValue(masterFieldIndex)); } }