News for hackers. Stuff that matters.
Re:Open Source .NET libraries that make your life easier by Cakez0r on Friday April 10, 2015 @11:09AM (#9354820)
Entity Framework isn't really similar to any of the things I listed. I tried to only include components you might use as part of a larger system, rather than technology stack choices.

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<TagModel>("SELECT TOP 1 * FROM Tags WHERE Id = @Id", new { Id = id }).FirstOrDefault();
            }
        }

There are no comments on this comment yet.