TypedSignalR.Client.TypeScript
LINQKit
TypedSignalR.Client.TypeScript | LINQKit | |
---|---|---|
4 | 6 | |
81 | 1,574 | |
- | - | |
8.6 | 3.5 | |
6 days ago | 4 months ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TypedSignalR.Client.TypeScript
- What your hidden nuget gems ?
-
React and SignalR
I have a SignalR hub in my C# backend and I generate a typescript client for it using https://github.com/nenoNaninu/TypedSignalR.Client.TypeScript. However, I am not very experienced with react so I do not know how to integrate this generated code into react components. My main issue is that I connect to SignalR from the component and if the component updates, a new connection is created. I would like to move this out of the component so it does not constantly make new connections.
- Could SignalR be simpler?
-
TypeScript source generator to provide strongly typed SignalR clients by analyzing C# type definitions.
SignalR is very useful for creating applications that require real-time communication. Therefore, I use SignalR a lot. However, one inconvenience is that a server-side can be strongly typed, but a client-side cannot be strongly typed. So I developed TypeScript source generator to provide strongly typed SignalR clients by analyzing C# type definitions.
LINQKit
-
What your hidden nuget gems ?
I also enjoy LinqKit (mentioned here). Really cool way to build a LINQ predicate.
-
EF Core Include where
I would suggest to install LINQKit Configure DbContextOptions: cs builder .UseSqlServer(connectionString) .WithExpressionExpanding(); // enabling LINQKit extension
- Як я мігрував з EF 6 до EF Core 5
-
Build dynamic Linq filters (aka. where() predicates)
Nice! At work we do something similar, but we use the predicate builder of linqkit: https://github.com/scottksmith95/LINQKit
-
Expression<Func<T>> usage in filters and sorting
To answer your other question, you can use something like PredicateBuilder to compose predicates for use in Where and OrderBy methods. To define your OrderBy with a boolean (or string or enum) to denote the ordering, you would have to make an extension method like so:
What are some alternatives?
signalr-ports
Linq.Expression.Optimizer - System.Linq.Expression expressions optimizer. http://thorium.github.io/Linq.Expression.Optimizer
ServiceWire - ServiceWire is a very fast and light weight service host and dynamic client library that simplifies the development and use of high performance remote procedure call (RPC) communication between .NET processes over Named Pipes or TCP/IP.
dynamic-linq-query-builder - A truly generic and dynamic linq query builder to compliment jQuery QueryBuilder and other dynamic linq query generation needs
BlazorChatSample - A sample Blazor chat application using SignalR
System.Linq.Dynamic.Core - The .NET Standard / .NET Core version from the System Linq Dynamic functionality.
Insight.Database - Fast, lightweight .NET micro-ORM
Dapper Extensions - Dapper Extensions is a small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs. For more advanced querying scenarios, Dapper Extensions provides a predicate system. The goal of this library is to keep your POCOs pure by not requiring any attributes or base class inheritance.
Lazy Cache - An easy to use thread safe in-memory caching service with a simple developer friendly API for c#
MongoDB Repository pattern implementation
Gui.cs - Cross Platform Terminal UI toolkit for .NET
LINQ to DB - Linq to database provider.