sql server - BreezeJs/EntityFramework Order By null/empty string handling -



sql server - BreezeJs/EntityFramework Order By null/empty string handling -

i have application making utilize of breezejs querying standard webapi controller backed entityframework , sql store. when utilize order clause, wish null , empty string values sorted lastly (for both ascending , descending order).

in sql or ef server side not hard task. however, i've not been able locate documentation breezejs shows how can accomplished.

the ideal solution way modify ef context default behavior when order detected, prior query hitting db. failing that, perhaps there's way i've missed in breeze specify how nulls handled in results.

worst case, i'll need write 2 separate queries client side , merge results, 1 , 1 without values in specified column.

suggestions?

this interesting question.

breeze has class called localquerycomparisonoptions may used command whether client side ordering case sensitive , whether string comparisons should sql92 compliant. thought here class should used match whatever ordering rules used whatever server implementation have selected.

it sounds want have alternative completely command local ordering of query, providing own ordering function. if case, please add together breeze user voice , vote it. seems reasonable , if gets plenty votes think makes sense add together product.

note still need insure ef ( or whatever backend using) adheres these same ordering rules.

also, out of curiosity, how create ef order nulls way?

sql-server entity-framework asp.net-web-api breeze

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -