Skip to content

Commit d0b7b9e

Browse files
Jason Nguyencartermp
authored andcommitted
Patch 1 (#1147)
* Update generating-fsharp-types-from-edmx.md Removed erroneous ) from the select statement in the example demonstrating a where clause * Update generating-fsharp-types-from-edmx.md Correcting the join statement in the example for joining two tables * Update generating-fsharp-types-from-edmx.md Under the section "Creating an EDMX file," adding the link to the "Configuring the Entity Data Model" section. * Update generating-fsharp-types-from-edmx.md Correcting indentation for the changeHireDate function
1 parent b89cf76 commit d0b7b9e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/fsharp/tutorials/type-providers/generating-fsharp-types-from-edmx.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If you already have an EDMX file, you can skip this step.
5151

5252
#### To create an EDMX file
5353

54-
- If you don't already have an EDMX file, you can follow the instructions at the end of this walkthrough in the step **To configure the Entity Data Model**.
54+
- If you don't already have an EDMX file, you can follow the instructions at the end of this walkthrough in the step [Configuring the Entity Data Model](generating-fsharp-types-from-edmx.md#configuring-the-entity-data-model).
5555
<br />
5656

5757
## Creating the project
@@ -164,13 +164,13 @@ query {
164164
query {
165165
for course in context.Courses do
166166
where (course.DepartmentID = 1)
167-
select course)
167+
select course
168168
} |> Seq.iter (fun course -> printfn "%s" course.Title)
169169
170170
// Join two tables
171171
query {
172172
for course in context.Courses do
173-
join (for dept in context.Departments -> course.DepartmentID = dept.DepartmentID)
173+
join dept in context.Departments on (course.DepartmentID = dept.DepartmentID)
174174
select (course, dept.Name)
175175
} |> Seq.iter (fun (course, deptName) -> printfn "%s %s" course.Title deptName)
176176
```
@@ -192,13 +192,13 @@ let nullable value = new System.Nullable<_>(value)
192192
// Throw an exception if more than one matching person is found.
193193
let changeHireDate(lastName, firstName, hireDate) =
194194
195-
query {
196-
for person in context.People do
197-
where (person.LastName = lastName &&
198-
person.FirstName = firstName)
199-
exactlyOne
200-
} |> (fun person ->
201-
context.UpdatePerson(nullable person.PersonID, person.LastName, person.FirstName, nullable hireDate, person.EnrollmentDate))
195+
query {
196+
for person in context.People do
197+
where (person.LastName = lastName &&
198+
person.FirstName = firstName)
199+
exactlyOne
200+
} |> (fun person ->
201+
context.UpdatePerson(nullable person.PersonID, person.LastName, person.FirstName, nullable hireDate, person.EnrollmentDate))
202202
203203
changeHireDate("Abercrombie", "Kim", DateTime.Parse("1/12/1998"))
204204
|> printfn "Result: %d"

0 commit comments

Comments
 (0)