dimanche 1 juin 2014

Breeze Local Query for EnumType


Vote count:

0




I setup WebApi method for Lookups which return



public Object Lookups()
{
var durations = Enum.GetNames(typeof(Duration));
var status = Enum.GetNames(typeof(Status));
return new { durations, status };
}


Then I make a query to the server with breeze



return entityQuery.from('Lookups')
.using(manager).execute()
.then(querySucceeded, _queryFailed);

function querySucceeded(data) {

console.log("Retrieving [Lookups] " + data);
return true;
}


Now I later on I want to get those lookups from cache, please note that in metadata my Enums reside under "EnumType", so How can I get them locally?


Thanks



asked 36 secs ago






Aucun commentaire:

Enregistrer un commentaire