Knockout ORM framework with REST service adapter and offline storage.
Using Bower:
$ bower install korm --save
Using NuGet:
$ Install-Package KORM
You could use korm in different context.
requirejs.config({
paths: {
knockout: 'path/to/knockout',
underscore: 'path/to/underscore',
jquery: 'path/to/jquery',
koutils: 'path/to/koutils',
korm: 'path/to/korm'
}
});
define(["korm/datacontext"], function(context) {
var ctx = new context.DataContext();
ctx.addSet("Customers", "CustomerId", "Models.Customer");
//...
});
Include built script in your HTML file.
<script type="text/javascript" src="path/to/knockout.js"></script>
<script type="text/javascript" src="path/to/underscore.js"></script>
<script type="text/javascript" src="path/to/jquery.min.js"></script>
<script type="text/javascript" src="path/to/koutils.min.js"></script>
<script type="text/javascript" src="path/to/korm.min.js"></script>
Documentation is hosted on Github Wiki.