Why Rich Data ?
Because UX (user experience) is king, and because we do so much more in real applications then getting data and displaying it.
What is Rich Data ?
- Client caching is possible becuse of using a DataContext on the client
- Change tracking on the entities
- Queries both local and from servers by using OData filters
- Extend the models, cause some thing we do not need to persist to the server.
- Object graphs cause we all have Customer, Orders, OrderDetails (or we are not making money) and we would love to associate then when we allready know about them on the client.
Some notes about rich data from LIDNUG live meeting
Lidnug & John Papa: Building Single Page Apps
Event: Single Page Apps Jump-Start
Hosted by: Linked In .NET User Group
When: Thursday Novemeber 15th, 2012 at 1:00pm EST to 2:30 pm EST (19u belgium)
357 people - 25 questions (over 100 didn't stay for questions, dumb)
Code Camper JumpStart Breeze 101
- Reduced javascript data handling code 1200 lines to about 170 lines with more functionality.
- Upshotjs is no longer in active development.
- With BreezeJs, AmplifyJs is no longer needed for local storage.
- Validation is possible but you can also use knockout validation.
- Was using a lot of knockout mapping before, but not anymore.
var query = EntityQuery.from('Speakers').orderBy('lastName, firstName');
return manager.executeQuery(query).then(querySucceeded).fail(queryFailed);
function querySucceeded(data) {
speakers(data.results);
}
- The http://www.asp.net/vnext/overview/fall-2012-update update build of asp.net includes a single page application template, but does not yet include rich data. (select mvc4 first and then you will see the SPA template, else use devenv.exe /InstallVSTemplates)
- Best is to try to load as much data at first load, but only if it is common used data.
- On the roadmap are using Breezejs together with SignalR, so we can broadcast to the clients to refresh.
- SPA for applications with more then 200 views ? Is this possible? Maybe better to split them up in smaller applications.
- For stock applications and more 5000 operations per second you need signalr with sockets!
- John Papa will release a tutorial on Typescript early december.
- Likes knockout templates, only the others if really a lot of elements. Using mustache for speed.
- http://www.youtube.com/user/lidnug