Change a network transport: reimplementing LinqService?
See original GitHub issueI’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:
- Created 2 years ago
- Comments:23 (23 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 previewThere 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