
▲ 0 r/csharp
The main difference is that now, instead of having
QueryOne<T>(...) and QueryAll<T>(...)
everything is regrouped and dispatched via
Query<T>(...)
Meaning that when you want a list you call Query<List<T>>(...), if you want a stream Query<IEnumerable<T>>(...)...
I made the change since, eventually, i plan to support constructors with collection as parameters like
User(int ID, string Name, int[] Roles)
The goal is to support to have multiple rows related to the user (one per role) and to be able to generate the user once with the associated roles in a way that could simply be called Query<User>(...)
u/Bobamoss — 27 days ago