Playing with breezejs. Here is a code:
var dataService = new breeze.DataService({
serviceName: "/api/articles",
hasServerMetadata: false
});
var ms = new breeze.MetadataStore();
var manager = new breeze.EntityManager({
dataService: dataService,
metadataStore: ms
});
var query = new breeze.EntityQuery().from("Query");
manager.executeQuery(query).then(function (data) {
// this fails
var articles = manager.executeQueryLocally(query);
console.log(articles);
}).fail(function(e) {
alert(e);
});
Without line var articles = manager.executeQueryLocally(query); everything is ok. With it it says “entityType is null”. I suppose that I need to add entity type but not sure how?
As of v 0.81.2, there is now a sample using breeze without server metadata, running against an in-memory server side datastore. The sample is called ToDo-NoEF and is available via download from the breeze site.