Skip to content

Commit

Permalink
Merge pull request #74 from fannarx/patch-3
Browse files Browse the repository at this point in the history
Fixing syntax
  • Loading branch information
danielbsig committed Dec 22, 2014
2 parents bbae9f7 + cc9d09e commit 628ac2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Week03/9. LINQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ There are two ways to write LINQ statements: using [Query syntax or using Method
var result = _courses.All().Where(c => c.Semester == "20143").OrderBy(c => c.Name);

//The same query but in with MS SQL syntax
SELECT * FROM courses WHERE Semester == '20143' ORDER BY Name asc;
SELECT * FROM courses WHERE Semester = '20143' ORDER BY Name asc;
```
Both queries are equivalent, and will result in identical queries being executed. There are however cases where it will
be more convenient to use one method over the other, so it is probably not a good idea to reject one or the other
Expand Down

0 comments on commit 628ac2c

Please sign in to comment.