I'm using SQLCLR in my project and, for the record, I'm very pleased with it. However, I can't find any good sources of information for good data access patterns.
Usually I do communication between .net and SQL using stored procedures because I always want an API for my database. However, in this case the .net code is part of the API, so SPs seem bad.
Linq2SQL does not exist in SQL server (although it can be installed by doing things DBAs won't like), so it's not an option.
What I currently have is my code cluttered with standard ADO.NET code like
using (SqlCommand cmd = c.CreateCommand()) {
cmd.CommandText = "SELECT ... FROM ...";
using (SqlDataReader rdr = cmd.ExecuteReader()) {
DoSomething(rdr);
}
}
and, although, it works, it just seems very much like the wrong way to do it.
How do other people do it?