Skip to content

Commit 757edbb

Browse files
committed
...
1 parent bb446c6 commit 757edbb

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

doc-net/controlling-serialization-4x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ redirect_from: "/doc-net/controlling-serialization.html"
55
---
66
# Controlling Serialization
77

8-
> **NOTE: This page is for Breeze running on .NET 4.x**
8+
> **NOTE: This page is for Breeze running on .NET 4.x**<br>
99
1010
If you're serving data with Breeze-flavored ASP.NET Web API controllers, you're using the Newtonsoft.Json .NET library to serialize and de-serialize data.
1111

doc-net/ef-dbcontext-4x.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ redirect_from: "/old/documentation/entity-framework-dbcontext.html"
44
---
55
# DbContext
66

7+
> **NOTE: This page is for Breeze running on .NET 4.x**<br>
8+
79
The Basic Breeze teaching tests make requests for data services to an ASP.NET Web API controller. The controller forwards those requests to the .NET Entity Framework (EF).
810

911
This arrangement is typical for many Breeze applications and, although far from necessary, it is the arrangement we're describing in "Basic Breeze".

doc-net/ef-efcontextprovider-4x.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ redirect_from: "/doc-net/efcontextprovider.html"
55
---
66
# EFContextProvider
77

8+
> **NOTE: This page is for Breeze running on .NET 4.x**<br>
9+
810
Many application servers use an ASP.NET Web API controller to handle the client's HTTP requests. And they use the Entity Framework (EF) to model and access a SQL database. Breeze has an ***EFContextProvider** component to make controller interactions with EF a little easier. It's basically a wrapper around your application's *ObjectContext* or *DbContext* that mediates between the Breeze controller and EF. It takes care of a lot of routine plumbing.
911

1012
You can use the EFContextProvider "as is", right out-of-the-box when you're getting started. But you will almost certainly customize it to add your application's business logic. For example, you will want to **[intercept save requests and validate them](#SaveInterception)**. You may want to do something special immediately before or after the provider tells EF to save entities to the database. And you may want to dynamically control how the provider creates the EntityFramework ObjectContext or DbContext at the core of the EF operations.

doc-net/persistencemanager-core.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: doc-net
33
---
44
# PersistenceManager
55

6-
> **NOTE: This page is for Breeze running on .NET Core**<br><br>
6+
> **NOTE: This page is for Breeze running on .NET Core**<br>
77
> [Go here for .NET 4.x version](/doc-net/contextprovider-4x)
88
99
The `PersistenceManager` is a server-side component for managing data access and business validation with .NET technologies.
@@ -33,7 +33,7 @@ In `AfterSaveEntities` you have access to the entities after they've been saved
3333

3434
You do not have to subclass a `PersistenceManager` to provide *before-* and *after-save* logic.
3535

36-
You can attach handlers to the corresponding delegate properties of a `ContextProvider` instance: `BeforeSaveEntityDelegate`, `BeforeSaveEntitiesDelegate` and `AfterSaveEntitiesDelegate`. There is no difference in functionality. Choose the approach that suits your architectural style.
36+
You can attach handlers to the corresponding delegate properties of a `PersistenceManager` instance: `BeforeSaveEntityDelegate`, `BeforeSaveEntitiesDelegate` and `AfterSaveEntitiesDelegate`. There is no difference in functionality. Choose the approach that suits your architectural style.
3737

3838
Each of these methods receives entity change information in the form of an `EntityInfo`.
3939

@@ -45,11 +45,11 @@ The `SaveChanges` method translates the incoming JSON change-set (aka "SaveBundl
4545

4646
An `EntityInfo` describes the entity-to-be-saved and the save operation to be performed on it. Here is its annotated interface:
4747

48-
// A back reference to the concrete ContextProvider that created it
49-
ContextProvider ContextProvider { get; internal set; }
48+
// A back reference to the concrete PersistenceManager that created it
49+
PersistenceManager ContextProvider { get; internal set; }
5050

5151
// The values to save represented as an instance of a .NET class
52-
// Created for you by the ContextProvider
52+
// Created for you by the PersistenceManager
5353
Object Entity { get; internal set; }
5454

5555
// Whether the entity is to be added, updated, or deleted

doc-net/webapi-controller-core.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ layout: doc-net
33
---
44
# The ASP.NET Web API controller
55

6-
> **NOTE: This page is for Breeze running on .NET Core**
7-
6+
> **NOTE: This page is for Breeze running on .NET Core**<br>
87
> [Go here for .NET 4.x version](/doc-net/webapi-controller-4x)
98
109
The Basic Breeze teaching tests in the [DocCode sample](/doc-samples/doccode "Breeze 'DocCode' teaching sample") demonstrate the Breeze `EntityManager` making requests of a **Breeze ASP.NET Web API controller**.

doc-net/webapi-routing-4x.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ redirect_from: "/doc-net/webapi-routing.html"
55
---
66
# Web API Routing
77

8-
> **NOTE: This page is for Breeze running on .NET 4.x**
9-
8+
> **NOTE: This page is for Breeze running on .NET 4.x**<br>
109
> [Go here for .NET Core version](/doc-net/webapi-controller-core)
1110
1211
We've built a Breeze controller that Web API will discover automatically. Now we must teach the Web API to route Breeze client requests to this controller and configure the Web API to use the controller properly.

0 commit comments

Comments
 (0)