Coder Social home page Coder Social logo

CustomField in Tables about infusionsoft.net HOT 2 OPEN

eventday avatar eventday commented on July 22, 2024
CustomField in Tables

from infusionsoft.net.

Comments (2)

UserSud avatar UserSud commented on July 22, 2024

Hi

what do you think about adding a check for null in the QueryBuilder Add like:

public IQueryBuilder<T> Add<TV>(Expression<Func<T, TV>> expression, TV value, ValuePosition valuePosition)
        {
            string name = Express.PropertyWithLambda(expression).Name;

            if (value == null)
            {
                _dictionary.Add(name, BuildPositionalValue(valuePosition, "~null~"));
            }
            else
            {
                _dictionary.Add(name, BuildPositionalValue(valuePosition, value));    
            }

            return this;
        }

I added an int? property to cater for a custom field I added to Orders and am thinking to make your table classes to be Partial then I'll extend the entities without affecting the generated codes.
Do you think this is viable?

Thanks

from infusionsoft.net.

trbngr avatar trbngr commented on July 22, 2024

Hi UserSud,

I sincerely apologize for not responding earlier. I've been extremely busy lately.

I think the partial class is a good extension point! Let it rip!

I'll be back to try and fix some issues with the code when I get a chance. In the meantime, I encourage you to fork this repo, if you haven't yet, and have fun with it.

Thanks,
Chris

from infusionsoft.net.

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.