Skip to content

Commit 0478530

Browse files
committed
...
1 parent b4effdc commit 0478530

File tree

4 files changed

+4
-117
lines changed

4 files changed

+4
-117
lines changed

_data/menu-net.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menuitems:
88
- { link: "webapi-controller-core.html", title: The Web API Controller, ischild: true }
99
- { link: "persistencemanager-core.html", title: The PersistenceManager, ischild: true }
1010
- { link: "ef-serverside-model-core.html", title: EF - Server side model, ischild: true }
11-
- { link: "ef-dbcontext-core.html", title: EF - DBContext, ischild: true }
11+
- { link: "ef-efperistencemanager-core.html", title: The EFPersistenceManager, ischild: true }
1212
- { link: "ef-serverside-validation-core.html", title: EF - Server-side validation, ischild: true }
1313
- { link: "breeze-server-4x", title: For .NET 4.x, isparent: true }
1414
- { link: "webapi-routing-4x", title: Web API routing, ischild: true }

doc-net/ef-dbcontext-core.md

Lines changed: 0 additions & 107 deletions
This file was deleted.

doc-net/ef-efpersistencemanager-core.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ This topic explores the *EFContextProvider* in greater detail and explains how t
1414
Any Breeze application that will be communicating with an Entity Framework backed domain model will contain either an *ObjectContext* or a *DbContext* that looks something like what is shown below:
1515

1616

17-
public partial class NorthwindIBContext : System.Data.Objects.ObjectContext {
18-
// automatically generated code from the EDMX designer
19-
}
20-
21-
Or
22-
2317
public partial class NorthwindIBContext : System.Data.Entity.DbContext {
24-
// Code-First DBSet definitions and any model initialization code
18+
2519
}
2620

2721
This ObjectContext or DbContext will in turn be wrapped in an **EFContextProvider**. The Breeze.WebApi.EFContextProvider class may be found in the Breeze.WebApi dll. An instance of this EFContextProvider is then used to provide services to a standard .NET MVC 4 ApiController (Sytem.Web.Http.ApiControllerApiController). This will look something like:

doc-net/ef-serverside-validation-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: doc-net
88
99
## Save validation <a name="Savevalidation"></a>
1010

11-
All server side validation errors go to the `catch` promise. Server side validation errors appear as a property called `entityErrors` that contains an array of server errors.
11+
All server side validation errors are returned to the your Breeze client via a `catch` promise. Server side validation errors appear as a property called `entityErrors` that contains an array of server errors.
1212

1313
em.saveChanges().then(function (sr) {
1414
@@ -54,7 +54,7 @@ Example:
5454

5555
[HttpPost]
5656
public SaveResult SaveWithEntityErrorsException(JObject saveBundle) {
57-
ContextProvider.BeforeSaveEntitiesDelegate = ThrowEntityErrorsException;
57+
PersistenceManager.BeforeSaveEntitiesDelegate = ThrowEntityErrorsException;
5858
return ContextProvider.SaveChanges(saveBundle);
5959
}
6060

0 commit comments

Comments
 (0)