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.

Change a network transport: reimplementing LinqService?

See original GitHub issue

I’m looking to https://github.com/linq2db/examples/tree/master/LinqOverWCF/Windows Host and trying to replace wcf -> grpc.

I’m at the beginning and need an advise or someone who give me right direction. My trouble now is to understand - I need to take LinqService as is and wrap it with grpc stuff and grpc DTO objects I need to create, or I need to reimplement it.

I tried to reimplement because I want to have all methods (ExecuteReader, ExecuteBatch etc) as async. So instead of

                return DataConnection.QueryRunner.ExecuteNonQuery(db, new QueryContext
                {
                    Statement = query.Statement
                }, new SqlParameterValues());

I want to have

                return await DataConnection.QueryRunner.ExecuteNonQueryAsync(db, new QueryContext
                {
                    Statement = query.Statement
                }, new SqlParameterValues());

etc. Here is a problem: LinqServiceSerializer, DataConnection.QueryRunner and others is internal. of course I can overcome in with reflection, but I’m not sure it’s a right direction.

Any advices will help me a lot. Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
MaceWinducommented, Jan 25, 2022

We don’t have date for final release of v4 except this year, but we release v4 previews from time to time. Maybe I will find time to include requred changes in nearest preview

0reactions
MaceWinducommented, Jan 27, 2022

There were never declared compatibility between different versions of server and client as we transfer serialized AST and it changes a lot between versions with each new feature

Read more comments on GitHub >

github_iconTop Results From Across the Web

LINQ over WCF on .Net standard 2.0? · Issue #1678
We have an app working with LinqToDB on Server and executing queries on Windows WPF clients using LINQ Over WCF with LinqToDB.ServiceModel.
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