Open Source .NET libraries that make your life easier
21–30 of 116 posts
Re: Open Source .NET libraries that make your life easier
#22TopShelf looks interesting, I have written quite a few Windows services over the years and there have always been lots of gaps in the MS offering.
Re: Open Source .NET libraries that make your life easier
#23To add to the author's list: * I seem to install Json.net in every .NET project I create (json serializer - thanks James Newton-King!) * NLog for logging. It's fantastic. * Dapper is also excellent (Micro ORM) (and anything written by Marc Gravell is generally top-notch - see protobuf-net, miniprofiler, StackExchange.Redis) * Automapper, to avoid writing boilerplate code to convert between similarly shaped types (E.G…
I use NLog, but I access it through the Common.Logging facade. This is helpful when I need to bolt my code into an environment where NLog kind of sucks, like Xamarin.Android.
Re: Open Source .NET libraries that make your life easier
#24TopShelf looks interesting, I have written quite a few Windows services over the years and there have always been lots of gaps in the MS offering.
Re: Open Source .NET libraries that make your life easier
#25Surprised no one has mentioned Nancy: https://github.com/NancyFx/Nancy I can't imagine building APIs without it now.
Re: Open Source .NET libraries that make your life easier
#26Don't be put off by the dated SourceForge location. It is pure awesome for getting data in and out of CSV format.
Re: Open Source .NET libraries that make your life easier
#27Re: Open Source .NET libraries that make your life easier
#28To add to the author's list: * I seem to install Json.net in every .NET project I create (json serializer - thanks James Newton-King!) * NLog for logging. It's fantastic. * Dapper is also excellent (Micro ORM) (and anything written by Marc Gravell is generally top-notch - see protobuf-net, miniprofiler, StackExchange.Redis) * Automapper, to avoid writing boilerplate code to convert between similarly shaped types (E.G…
How does Automapper compare to Entity Framework? We use Elmah instead of Nlog, which is also fine. Looks like NLog is a bit more flexible than Elmah is. But Elmah is KISS which is nice.
Dapper distills the converting database rows to objects. It's a micro ORM, which means it doesn't try to abstract SQL like a monolithic ORM (NHibernate, EntityFramework) would do. Example:
public TagModel GetTag(long id)
{
using (var conn = m_connector.GetConnection())
{
return conn.Query("SELECT TOP 1 * FROM Tags WHERE Id = @Id", new { Id = id }).FirstOrDefault();
}
}Re: Open Source .NET libraries that make your life easier
#29Re: Open Source .NET libraries that make your life easier
#30To add to the author's list: * I seem to install Json.net in every .NET project I create (json serializer - thanks James Newton-King!) * NLog for logging. It's fantastic. * Dapper is also excellent (Micro ORM) (and anything written by Marc Gravell is generally top-notch - see protobuf-net, miniprofiler, StackExchange.Redis) * Automapper, to avoid writing boilerplate code to convert between similarly shaped types (E.G…
I use ELMAH for logging but I'll give NLog a look!