Permalink
Browse files

added ToArray() to bulk save in docs

  • Loading branch information...
1 parent 656c853 commit 8a514eec3a719fe55b453b8cf82e407261e106b5 @robconery robconery committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.markdown
View
@@ -130,7 +130,7 @@ var table = new Products();
//I think I might have... yes
var drinks = table.All("WHERE CategoryID = 8");
//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
item.CategoryID = 12;
}

0 comments on commit 8a514ee

Please sign in to comment.