Skip to content

Commit

Permalink
added ToArray() to bulk save in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robconery committed Mar 27, 2012
1 parent 656c853 commit 8a514ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -130,7 +130,7 @@ var table = new Products();
//I think I might have... yes //I think I might have... yes
var drinks = table.All("WHERE CategoryID = 8"); var drinks = table.All("WHERE CategoryID = 8");
//what we get back here is an IEnumerable < ExpandoObject > - we can go to town //what we get back here is an IEnumerable < ExpandoObject > - we can go to town
foreach(var item in drinks){ foreach(var item in drinks.ToArray()){
//turn them into Haack Snacks //turn them into Haack Snacks
item.CategoryID = 12; item.CategoryID = 12;
} }
Expand Down

0 comments on commit 8a514ee

Please sign in to comment.