Errors when using Breeze with EF -


i using breezejs ef. web api returning "object" consisting of properties number of linked entities use bind grid. need update of properties later , want cache data , hence breeze. using nodb sample create custom entity.

the first problem breeze seems expect property called name passed in addentitytype method or throws error 'structuraltypename' parameter must 'string'.

the second problem call structuraltype._fixup in breeze on line 4742 seems throwing following error object # has no method '_fixup' though can see function exists.

can point out doing wrong in code below ? error in addentitytype call.

manager.metadatastore.addentitytype({             name: "transcription", shortname: "transcription", namespace: "etrans.data.models", autogeneratedkeytype: breeze.autogeneratedkeytype.identity,             dataproperties: {                 audio: { datatype: datatype.string }, clientid: { datatype: datatype.int32 }, clientname: { datatype: datatype.string },                 clinicianfirstname: { datatype: datatype.string }, clinicianlastname: { datatype: datatype.string }, notes: { datatype: datatype.string },                 status: { datatype: datatype.string }, transcriptionid: { datatype: datatype.int32, ispartofkey: true }, user: { datatype: datatype.string }             }          });         manager.metadatastore.registerentitytypector("transcription", null, customreportfields); 

on server side have data layer in project called etrans.data. web api invokes repository queries data layer. in instance querying entity called transcription (etrans.data.models.transcription) , number of linked entities.

@shai - regret confusion encountered appears consequence of evolution of breezejs client metadata definition api. not understand recommendation.

the hottowel template , ht nuget package(s) depend upon older version of breezejs nuget package may have had addentitytype method has since changed (i haven't looked). i'll work john papa ht stuff updated.

but don't understand you're telling people do. ht templates work delivered if stay within boundaries of then-official-capabilities. fwiw, client-side metadata definition in beta @ time , said api change. still work in progress.

updating app latest versions of dependent packages change things of course. why 1 upgrade.

are saying there continuing problem after update latest breeze nuget packages? pointing discrepancy between latest breeze nuget packages (1.3.3 write) , latest source in github. there discrepancy there - breezejs on github holds our latest ideas ... many of change , none of them approved development use. advise people stick official releases.

are telling folks shouldn't use hottowel? why? problem encountered not in mainstream feature (it's not official feature of ht).

otoh, both understand , agree recommendation upgrade ht dependent packages (including durandal , toastr breeze) latest versions.

thanks hanging in there us.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -