question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

help me , migrate from bltoolkit to linq2db

See original GitHub issue

hi

my project worked by bltoolkit like

[SqlQuery(@"UPDATE Tbl.Art SET LikeScore=ISNULL(LikeScore,0)+1 WHERE ArticleId=@ArticleId")] public abstract void ArticleLike(int articleId);

I don’t know in linq2db how ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MaceWinducommented, Jan 25, 2020

you can use FromSql

0reactions
sdanylivcommented, Jan 25, 2020

@MajidSafari, this is repository pattern. You can find a tons of realizations in github even for linq2db. I personally don’t like this pattern. Do you have any reason to use Raw SQL? Linq2db created for simplifying SQL generation and it is a strongest part of the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from old Merge API
Migrating from old Merge API. This page contains information how to replace old Merge API calls with new API calls. Breaking changes.
Read more >
BL Toolkit Alternatives - ORM - Awesome .NET - LibHunt
And certainly we would be happy to merge your pull requests. Please, consider migrating to linq2db. Do not miss the trending, packages, news...
Read more >
Automating query mapping with multiple joins via Linq2Db
I've been able to recreate most of the automations I did for BLToolkit, but I'm struggling to create a standard structure to query...
Read more >
Highest scored 'linq2db' questions - Page 2
I want to migrate a database from Firebird to MSSQL using linq2db in C#. I thought I could load the structure using T4...
Read more >
linq2db
Using database transactions is easy. All you have to do is call BeginTransaction() on your DataConnection , run one or more queries, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found