I noticed that there are 3 versions with the same functionality available on NuGet ?
System.Linq.Dynamic (Microsoft)
Dynamic Expression API (Microsoft)
DynamicLINQ (David Fowler)
Can someone explain the differences ? And which one is the best package to use ?
The only difference is that Dynamic Expression API (DynamicQuery) supports .NET 3.5 and System.Linq.Dynamic also supports .NET 4.0
The DynamicLinq package has a totally different usage and API.
Related
Avalonia UI has an own implementation/version of ReactiveUI. How compatible is this library with the standard ReactiveUI library ?
In other words, can I create my models and viewmodels in a standard library with the nuget for the standard ReactiveUI library (not the avalonia one) and leave it up to the clients how to implement the UI/views ? If they prefer WPF, Xamarin, UNO or Maui (all possible with ReactiveUI at this moment), they can use one of these for the views. If they prefer avalonia for the views, they can use the Avalonia implementation. Is that possible ?
A second question is if the Avalonia-ReactiveUI messagebus is 100% compatible with regular ReactiveUI (for the same reason as mentioned before) ? So can I pass messages from regular/standard ReactiveUI to a AvaloniaUI-ReactiveUI implementation ?
Avalonia is using standard ReactiveUI since 0.6.0. Avalonia.ReactiveUI package just configures the required services.
I have been searching through the net for the package and reference required to use MimeReader but to no avail.
I imported MimeKit but MimeReader is not available.
Is the functionality depreciated or am I looking for the wrong keyword?
Usage: MimeReader mime = new MimeReader();
Any help would be greatly appreciated.
MimeReader is part of Microsoft.Exchange.Data: https://learn.microsoft.com/en-us/previous-versions/office/exchange-server-api/aa579311(v=exchg.150)
There is no nuget package for this API.
I believe these assemblies are only available if you have the Microsoft Exchange SDK.
Update: MimeKit >= v3.0 now has a MimeReader class, but it does not have an identical API to the MimeReader in Microsoft.Exchange.Data
Solution
I needed to update Nhibernate from version 3.1.0.4000 to 3.2.0.4000. My guess is that only 3.2+ has the extra Nhqueryable LINQ support. Btw, I am using NhQueryable because it appears to bind to JqGrid much faster that a regular IQueryable: better performance for JqGrid, hurrah!
Original Issue
Not sure my terminology or understanding is up to snuff to be able to ask this clearly:
I'm using asp.net, mvc3, and nhibernate(fluent). On one project I'm maintaining, I'm able to use LINQ extension methods (such as .Where()) with NhQueryable objects. On a second project, the only NhQueryable method available is .As<>().
What configuration/library/class am I missing in the second project? Nothing stands out to me in the first project where NhQueryable can use the LINQ extension methods.
Check that both projects are referencing the same version of NHibernate, one might be using an older version which does not have linq support.
If they are both using the same version, check that the correct namespaces have been added or you won't see the extension methods in Visual Studio.
Well I would like to know if NpgSQL supports .NET framework 4 with EntityFramework, as I tried to use it with framework 4 and Microsoft.Data.Entity.CTP (code first approach) in my MVC3 application and I found no success unfortunately.
Also if any one could lead me to any posts or links on using ADO.NET in MVC3 instead of EntiyFramework would be really helpful.
Any help would be really appreciated.
Out of box no. There is some workaround with PostgreSQL and EF, but I gave up after many attempts to force it to work. I use Telerik OpenAccess ORM. For PostgreSQL is free because database is also free. It's work with every major RDBMS. Support for Code first approach, and also database first approach (reverse enginering). In last version there is also Perfomance and tuning tool! Excellent product.
Here is link
When you asked the question I think the answer would have been no. The answer is probably irrelevant to you now but for others ...
Now I would have to say the answer is yes. I have a MVC3 (then upconverted to MVC4) project that uses code first entity framework and npgsql.
I used EF6b2 and npgsql 2.0.12.
Setting the web.config entityframework section, DbProviderFactories section and connectionstring correctly was the part the got it working. I also included the security and npgsql dlls in the project.
See
https://stackoverflow.com/a/12033304/25372
There seem to be 2 classes that relates to workflow Activities in .NET 4: System.Workflow.ComponentModel.Activity and System.activities.Activity
What's the difference between the two?
The first one ("System.Activities...") is from Workflow Foundation 3.0 and the second one ("System.Workflow...") is for Workflow Foundation 4.0.
There was a substantial rewrite (for the better imho) between the two. 3.0 workflow activities can be used in 4.0 via migration or via interop.