Coder Social home page Coder Social logo

Comments (4)

PerplexWouter avatar PerplexWouter commented on August 18, 2024

I'll try to whip up a start for the documentation later this week. I think we should probably highlight the following in order:

  • Point out that the properties of all models relate to the fields available in the API (but some API's may have restrictions to the field usage, reference API)
  • Show an example of selecting the appropriate fields using the Select method, using both multiple params and multiple Select calls
  • Examples using Where/And methods
  • Since each operator is only applicable to certain data types, it might be worth highlighting the possible combinations (or at the very least, the important ones!)
  • Advanced functions (trim, substring, etc). We should probably point out that at this time only string functions are supported (Contains, EndsWith, StartsWith, IndexOf, Substring, ToLower, ToUpper, Trim, Concat). Also I just noticed (while skimming over the OData specifications) that there is a function "Length" which the library currently doesn't support. DateTime, Math, Type and Geo functions are also not implemented (yet) at this time. I reckon we will want to support all Date/Math/Type functions at some point, and forsace the Geo functions? Might be worth making a note on this point as well.
  • Example of using SortBy

I think this should cover everything?

from exactonline-api-dotnet-client.

shtrip avatar shtrip commented on August 18, 2024

Sounds good.

Advanced functions (trim, substring, etc).

I don't recommend using such functions. For some of them there is a significant performance price so at some point they may not be supported anymore or only very limited.

from exactonline-api-dotnet-client.

PerplexWouter avatar PerplexWouter commented on August 18, 2024

I haven't used all aspects of the API extensively yet, but I did run into the issue of having to trim the Account.Code in the where search due to the field being fixed width (which is one of the reasons I added the support for it in the first place). Perhaps this case should be mentioned?

from exactonline-api-dotnet-client.

shtrip avatar shtrip commented on August 18, 2024

For account code you can also consider padding it with spaces if you have to use it in a where clause. The Code property in the Account model already has a remark mentioning this issue. Unfortunately the intellisense doesn't show the remark in the editor right now but I think we can fix that the next time we regenerate all the models.

from exactonline-api-dotnet-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.