Skip to content

Commit

Permalink
Fixing markdown weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
subsonic committed Feb 15, 2011
1 parent 7386d8f commit 5ea077f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Expand Up @@ -38,7 +38,7 @@ Now you can query thus:
//just grab from category 4. This uses named parameters
var productsFour = table.All(where: "WHERE categoryID=@0",args: 4);

What you get back is IEnumerable<ExpandoObject> - meaning that it's malleable and exciting. It will take the shape of whatever you return in your query, and it will have properties and so on. You can assign events to it, you can create delegates on the fly. You can give it chocolate, and it will kiss you.
What you get back is IEnumerable < ExpandoObject > - meaning that it's malleable and exciting. It will take the shape of whatever you return in your query, and it will have properties and so on. You can assign events to it, you can create delegates on the fly. You can give it chocolate, and it will kiss you.

That's pretty much it. One thing I really like is the groovy DSL that Massive uses - it looks just like SQL. If you want, you can use this DSL to query the database:
var table = new Products();
Expand Down Expand Up @@ -73,7 +73,7 @@ Yippee Skippy! Now we get to the fun part - and one of the reasons I had to spen
//OH NO YOU DIDN't just pass in an integer inline without a parameter!
//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
//what we get back here is an IEnumerable < ExpandoObject > - we can go to town
foreach(var item in drinks){
//turn them into Haack Snacks
item.CategoryID = 12;
Expand Down

0 comments on commit 5ea077f

Please sign in to comment.