@ -177,6 +177,7 @@ namespace NzbDrone.Core.Datastore
var id = (int)multi.Read().First().id;
_keyProperty.SetValue(model, id);
_database.ApplyLazyLoad(model);
return model;
}
@ -213,6 +214,7 @@ namespace NzbDrone.Core.Datastore
UpdateFields(conn, null, model, _properties);
ModelUpdated(model);
@ -105,8 +105,8 @@ namespace NzbDrone.Core.ThingiProvider
public virtual void Update(TProviderDefinition definition)
{
_providerRepository.Update(definition);
_eventAggregator.PublishEvent(new ProviderUpdatedEvent<TProvider>(definition));
var updatedDef = _providerRepository.Update(definition);
_eventAggregator.PublishEvent(new ProviderUpdatedEvent<TProvider>(updatedDef));
public virtual void Update(IEnumerable<TProviderDefinition> definitions)