That's what I figured, I know that even if you do .Date it'll still show 12:00:00 ... however, the query builder expects a real date value if passing it in as part of date query. is there a place I can add an exception to trim the time in the query builder? I couldn't find exactly where it's putting together the xmlrpcstruct...
@naeazach I just ran into the same issue and got around it by exposing the Dictionary property through IQueryBuilder: Dictionary<string, object> Dictionary { get; }
This allows me to get around the type restriction when bulding the query: queryBuilder: q => { q.Dictionary.Add("LastUpdated", "2016-02-16%"); },
Perhaps not the most eloquent solution, but got the job done.
Everything else appears to be fine in the .Query(). In my case I am using a ContactAction object, but the actual ContactAction object does not seem to be available in the queryBuilder for use in a lambda expression.
This is unfortunate because I was really hoping to hydrate a ContactAction instead of using the untyped query method.
from infusionsoft.net.
Comments (4)
My hunch is that startDate.ToStrjng() doesn't produce the same string as
your first example.
You can watch this with tracing.
@scottcate
On Wednesday, November 11, 2015, naeazach [email protected] wrote:
@scottcate (Mobile)
602-418-0770
from infusionsoft.net.
That's what I figured, I know that even if you do .Date it'll still show 12:00:00 ... however, the query builder expects a real date value if passing it in as part of date query. is there a place I can add an exception to trim the time in the query builder? I couldn't find exactly where it's putting together the xmlrpcstruct...
from infusionsoft.net.
@naeazach I just ran into the same issue and got around it by exposing the Dictionary property through IQueryBuilder:
Dictionary<string, object> Dictionary { get; }
This allows me to get around the type restriction when bulding the query:
queryBuilder: q => { q.Dictionary.Add("LastUpdated", "2016-02-16%"); },
Perhaps not the most eloquent solution, but got the job done.
from infusionsoft.net.
I couldn't get it to work either. Intellisense has trouble with the line:
queryBuilder: q => q.Add(c => c.DateCreated, startDate),
Everything else appears to be fine in the .Query(). In my case I am using a ContactAction object, but the actual ContactAction object does not seem to be available in the queryBuilder for use in a lambda expression.
This is unfortunate because I was really hoping to hydrate a ContactAction instead of using the untyped query method.
from infusionsoft.net.
Related Issues (20)
Recommend Projects
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
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.
Visualization
Some thing interesting about visualization, use data art
Game
Some thing interesting about game, make everyone happy.
Recommend Org
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.