Breeze executeQuery succeeds but returns empty objects

Viewed 311

I am using the most up-to-date (as of today) BreezeJS, AngularJS, .NET, Entity Framework, etc.

I have a Breeze application that looks to be set up correctly, however the results.data returned from executeQuery(query) contains empty objects (i.e. they evaluate to null).

I am using the BreezeJS take(1) filter and get one result to keep things simple.

I am able to pull up the metadata page (e.g. ~/breeze/appname/Metadata) and see the SQL Server database columns just fine.

So, what could be up? Anyone know what is breaking down from a conceptual standpoint?

Client-side query:

 var query = breeze.EntityQuery
        .from("Biography")
        .select("ENTITY_ID, NAME, NICKNAME")
        .orderBy("ENTITY_ID")
        .take(1);

Server-side [HttpGet]:

[HttpGet]
    public IQueryable<BIOGRAPHY> Biography()
    {
        var biography = _contextProvider.Context.BIOGRAPHY;
        return biography;
    }

Redacted JSON Response:

[{
  "$id":"1",
  "$type":"_IB_JNMBHFIpB3WQZ6daOssY9Dxx_p8Y[[System.String, mscorlib],[System.String, mscorlib],[System.String, mscorlib]], _IB_JNMBHFIpB3WQZ6daOssY9Dxx_p8Y_IdeaBlade",
  "ENTITY_ID":"4815162342",
  "NAME":"Mr. Hugo Reyes",
  "NICKNAME":null
}]
1 Answers
Related