Giter Club home page Giter Club logo

Comments (4)

datachomp avatar datachomp commented on July 17, 2024

Luke, do you not just add it yourself in Massive? While I am likely more opinionated with my SQL and don't use keywords for tables/columns for a variety of reasons, it seems like you could just hop in your code and make the change yourself:
I do tons of changes to Massive to get it to fit what I want all the time. Part of the reason I like it so much. It's like my own simple ORM silly putty.

You can look for these types of lines in the code:
var stub = "INSERT INTO {0} \r\n VALUES ({2})";

or
sbKeys.AppendFormat("{0} = @{1}, \r\n", item.Key, counter.ToString());

And put the brackets in yourself. I do it on a variety of them because I'm "slightly" particular about how my SQL looks.

from massive.

lukencode avatar lukencode commented on July 17, 2024

Yeah I would add it if I were using massive at the moment. It was something I encountered when just trying it out and thought I'd add the issue incase anyone else runs into the same thing.

from massive.

datachomp avatar datachomp commented on July 17, 2024

If there is someone still having issues with this, you can resolve it by defining your classes/queries like:

public class UglySchemaTable  : DynamicModel
{
    public UglySchemaTable()
        : base("CoolAppDb")
    {
        PrimaryKeyField = "[My bad PK Column]";
        TableName = "[dbo].[UglySchemaTable]";
    }
}

and while doing a query:

var table = new UglySchemaTable();
var barfing = table.All(where: "[doing it wrong] = @0", args: "me");
return barfing ;

from massive.

robconery avatar robconery commented on July 17, 2024

Delimits went in the other day - cheers

from massive.

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.