Skip to content

Can I use functions on insert or update? #709

Answered by ahmad-moussawi
finehotdog asked this question in Q&A
Discussion options

You must be logged in to vote

You are looking for UnsafeLiteral , this is similar to what DB:raw provide on Laravel.

var query = new Query("MyTable").AsUpdate(new
{
    Name = "The User",
    Address = new UnsafeLiteral("@address")
});

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@finehotdog
Comment options

Comment options

You must be logged in to vote
1 reply
@finehotdog
Comment options

Answer selected by finehotdog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants