Monday, November 16, 2020

SQLPlus.NET - the effort-less Microsoft.NET ORM for SQL Server

Too busy to read my post? Go to SQL+ .NET and check my new favorite ORM for the Microsoft.NET C# language. I am not paid to promote this tool - I just think it it awesome and want to share my discovery.

When working with SQL Server in a Microsoft .NET application, I want to stay focused on solving the business challenge at hand; I want to spend as little time as possible writing the plumbing to accomplish needed work with the database. I finally found an amazing tool that does just that!  This is the first of a series of blog posts to show just how easy and productive database interactions in Microsoft C#.

Over the years I have worked with Entity Framework (EF) and other ORMs such as Dapper, NHibernate, EntitySpaces.NET, LLBLGen Pro, and in it's heyday, my previous favorite, LINQ to SQL. I don't want to get into an argument whether these are true ORMs or not - I am using the term ORM loosely to mean any software tool or library that allows me to accomplish tasks in code with SQL Server without writing ADO.NET that utilizes datasets and data tables.

I was really disappointed when LINQ to SQL was discontinued in favor of Entity Framework. It was simple and intuitive. I know that many developers use EF on a regular basis and may be happy with it but I have always found it difficult to use. Perhaps you have struggled with it too; I certainly hope I am not the only one. 😔

Most developers that work with SQL Server use tools like SQL Server Management Studio (SSMS) or Visual Studio Code to write and test their queries before placing them in code. What if that was (almost) all you had to do to get that query to run in your application?

This is where SQL+.NET shines! I can take the T-SQL statement I have just written, add some annotations as comments to the T-SQL statements, place that T-SQL in my .NET project as a .sql file, and then in one step generate all the code I need to call it and send the inputs and  receive the status and results as strongly-typed .NET objects. In my next post, I will show just how easy it is. I think you will be pleasantly surprised.

Hope that helps.
Joe















Tuesday, October 20, 2020

I'm Back!

Dear readers:

After years of not blogging, I have decided to return to share my experiences and help others where I can.

I stopped blogging when I became a columnist for Visual Studio magazine. Why write for free when I could get paid for it? I wrote over 30 columns and it was a great experience, but eventually the demands of a monthly publication deadline became an issue. I retired from writing and gave up my Microsoft MVP status and became a "normal" person, or a reasonable facsimile of one.

Bottom line - I miss sharing my experiences so I am back. The final nudge came when I found a great .NET tool that really saves me a ton of time and I want to get the word out on that. So read my next post to find out what it is.

Joe