Skip to content

Commit

Permalink
AzureTableRepository use InsertOrReplace
Browse files Browse the repository at this point in the history
I think this is a better fit for the Azure Table world.
  • Loading branch information
Jeff Treuting committed Jan 23, 2014
1 parent ac921b5 commit c32ddfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected override IQueryable<T> BaseQuery(IFetchStrategy<T> fetchStrategy = nul

protected override void AddItem(T entity)
{
Table.Execute(TableOperation.Insert(entity));
Table.Execute(TableOperation.InsertOrReplace(entity));
}

// TODO: override Add(IEnumerable<T> entities) to use the TableSet.Add(entities) isntead of looping ourselves and having AddItem() called multiple times
Expand Down

0 comments on commit c32ddfb

Please sign in to comment.