This is a sample application using the NorthwindIB database, a modified version of the Northwind sample database that comes with Microsoft SQL Server.
This application uses Breeze, Angular , and Twitter Bootstrap on the client, and ASP.NET Web API and NHibernate on the server.
This app demonstrates how to use Breeze with ng-grid
(see controllers.js
), and a custom directive to perform client-side validation based on metadata provided
by the server-side domain model (see directives.js
and customers.html
).
The table below shows all the entities in the EntityManager that have changes. Entities added, deleted, or modified will appear in this table. The "Save" button on this page will cause all the entities to be saved to the server. The "Reset" button will cause all the changes to be discarded.
This table is not something you would find in a real app. It is provided as a way to visualize the EntityManager cache and a demonstration of the Breeze API.
This application uses a single EntityManager, so all changes occur in a single cache. Some applications may require multiple EntityManagers, so individual change sets (or Units of Work) can be managed independently. For an example of this, see the TempHire sample application.
Entity Type | Entity Key | Entity State | |||||||
---|---|---|---|---|---|---|---|---|---|
{{e.entityType.shortName}} | {{e.entityAspect.getKey().values}} | {{e.entityAspect.entityState.name}} | |||||||
|