Tag: 'databases'

Composing Linq Queries
Composing Linq Queries
July 20, 2024

At one of my clients, I was showing him how to structure a complex Linq query. This came as a surprise to him and I thought it was worth a quick blog entry.

Coding Short: Dapper and Entity Framework
Coding Short: Dapper and Entity Framework
September 6, 2021

I get tagged in a lot of discussion about Dapper vs. Entity Framework. This feels like nHibernate v. Linq2Sql redux. Well, I think about it very differently.

Seeding Related Entities in EF Core 2.1's HasData()
Seeding Related Entities in EF Core 2.1's HasData()
August 12, 2018

If you didn't notice, Entity Framework Core 2.1 has a new way to support seeding your databases with a method called HasData. Julie Lerman has a great new Data Points column in MSDN that explains how a lot of it works.

Avoid Lazy Loading in ASP.NET
Avoid Lazy Loading in ASP.NET
July 28, 2018

I know I am not going to make everyone happy with this post. I've been hoping to not have to make this post, but Entity Framework Core has finally added support for Lazy Loading, so it's time.

Mapping Between Entities and View Models
Mapping Between Entities and View Models
July 22, 2015

As many of you know, my recent course on Pluralsight dealt with Best Practices in ASP.NET: Entities, Validation and View Models. As I’ve worked with clients, there seem to be a non-ending list of ways to deal with data in ASP.NET.

Can't We Just Get Along: The Spurious NoSQL Battle
Can't We Just Get Along: The Spurious NoSQL Battle
August 3, 2014

The first blog post I ever wrote was a short one on databases. In fact for those of you who haven’t been following me for more than ten years, my old domain was “ADOGuy.com”. I wrote about ADO and ADO.NET pretty exclusively for years.

Are ORMs Solving Anything?
Are ORMs Solving Anything?
January 18, 2010

XBoxGames Databases for SQL Server 2005 and 2008
XBoxGames Databases for SQL Server 2005 and 2008
December 19, 2009

What Do We Want in Silverlight Validation?
What Do We Want in Silverlight Validation?
October 5, 2009

Url: http://niagara.codeplex.com

NHibernate 1.0 LINQ Provider Released!
NHibernate 1.0 LINQ Provider Released!
July 26, 2009

Url: http://ayende.com/Blog/archive/2009/07/26/nhibe...

RIA Services - Still Not Baked Yet
RIA Services - Still Not Baked Yet
July 24, 2009

As regular readers of my blog know (RIA Services Concerns Squashed), I have been a lukewarm supporter of RIA Services for Silverlight. As many of you know, Brad Abrams and company have come through with their latest release (RIA Services Preview July '09) with lots of changes I've been hoping for. Honestly I haven't had time to look at the new build (probably this weekend), but I am hopeful of its overall direction. I am still somewhat tentitive about some of the basic behavior of the framework but I will hold my tongue until I have more time to dive deeper into the code. 

Rigidity in Data Design
Rigidity in Data Design
August 9, 2008

To many developers this may seem odd. I talk with many staunch ALT.NET guys, and the DDD philosophy seems to be that data is a top-down or at worse, bottom up design problem. The issue here is that there is an assumption that just simply not true that data design is part of most software development projects. The reality based on my experience as well as the experience of talking with developers in the community is that many projects (though its hard to exactly quantify what percentage) begin with existing data. This is especially true in the enterprise where data exists in many forms from new databases, legacy servers (e.g. mainframes) or even flat files and XML. It is the rare project that is new code against all new data.

Results of the Data Access Poll
Results of the Data Access Poll
March 26, 2008

If you havent voted, please feel free to vote for what data access strategy here:

Data Access Strategies
Data Access Strategies
March 21, 2008

I had interesting conversations with a number of people about different data access/ORM strategies at MIX recently and was trying to understand where people are spending their efforts in consuming data. The conversation was essentially a discussion of who is using what to access data in .NET applications. I had assumed that certain solutions were widely used and others were not but I didn't have a good idea of what the market was really like. To help me with this I am asking you (my readers) to share with me where you are investing time in data access by taking the following poll:

Another xkdc Gem for the Data Lover in All of Us
Another xkdc Gem for the Data Lover in All of Us
November 12, 2007

Url: http://xkcd.com/327/

OMG! Too Many Ways to do Data Access with .NET?
OMG! Too Many Ways to do Data Access with .NET?
April 30, 2007

Url: http://visitmix.com

Guids as Keys
Guids as Keys
March 21, 2007

Url: http://www.codinghorror.com/blog/archives/00081...

RIP: FoxPro, 1984-2007
RIP: FoxPro, 1984-2007
March 14, 2007

Url: http://entmag.com/news/rss.asp?editorialsid=8320#1

AdventureWorks Database Diagram (Visio or HTML)
AdventureWorks Database Diagram (Visio or HTML)
January 30, 2007

Url: http://www.microsoft.com/downloads/details.aspx...

Using the Visual Studio Connection String Dialog
Using the Visual Studio Connection String Dialog
January 29, 2007

Url: http://wilderminds.blob.core.windows.net/downloads/TestDataConnect...

SQL Server 2005 Paging Demo
SQL Server 2005 Paging Demo
November 4, 2006

Url: http://wilderminds.blob.core.windows.net/downloads/pagingdemo.zip

Oracle 11g Announced
Oracle 11g Announced
October 23, 2006

Url: http://www.computerworld.com/action/article.do?...

ROW_NUMBER, RANK, DENSERANK and NTILE
ROW_NUMBER, RANK, DENSERANK and NTILE
October 4, 2006

I had an interesting discussion with some members of a class I am teaching right now about how paging is done.  It looks like there are four Functions that allow for paging and using Common Table Expressions.  They all can optionally include a separate ORDER BY clause to specify how they are sorted (so your result set can be sorted differently than it is ranked).

Vista RC1 Doesn't work with SQL Server 2005
Vista RC1 Doesn't work with SQL Server 2005
September 3, 2006

If you upgrade to RC1 be aware that SQL Server 2005 requires SP2 before it will work with Vista RC1.  Yeah, I know there is no SP2...but that's the case.  It just doesn't work. I am trying to hack around the problem so I'll let you know if I find a solution...

SQL Server Timestamps and ADO.NET Concurrency
SQL Server Timestamps and ADO.NET Concurrency
June 7, 2006

Url: http://msdn2.microsoft.com/en-US/library/system...

Atlanta C# Users Group - SQLCLR Presenation
Atlanta C# Users Group - SQLCLR Presenation
May 1, 2006

Url: http://www.atlantacsharp.org/NextMeeting.aspx

What ADO.NET 2.0 Book Do I Recommend?
What ADO.NET 2.0 Book Do I Recommend?
March 25, 2006

Url: http://www.amazon.com/exec/obidos/ASIN/15905951...

My New Article on NHibernate is Up!
My New Article on NHibernate is Up!
February 12, 2006

Url: http://www.devsource.com/article2/0,1895,192569...

SQL Packager and SQL Server MDF Formats
SQL Packager and SQL Server MDF Formats
February 6, 2006

Url: http://www.red-gate.com/products/SQL_Packager/i...

OR Mappers, Code Generators and Business Object Frameworks
OR Mappers, Code Generators and Business Object Frameworks
December 2, 2005

I am currently doing a bunch of evaluations on OR Mappers, Code Gen and Business Object Frameworks for my new book.  If anyone knows about anything great that might go unnoticed, please drop a comment or send me an email!

A New Book...
A New Book...
November 2, 2005

I've talked with lots off prospective authors the last few years since my first book came out.  I've tried to do what Chris Sells did for me, scare them...  I've explained that it is long hours, lots of dedication and can get in the way of family time.  I sure don't take my own advice very well.  I've agreed to write another book, "Prescriptive Data Architectures" for Addison-Wesley.  Unlike the first book (pre-blog craziness), I plan on using this blog to discuss my experience writing the book as well as a sounding board for my ideas that will be used in the book.

SQL Server 2005 Database Mirroring Slips to 1H 2006
SQL Server 2005 Database Mirroring Slips to 1H 2006
September 16, 2005

Url: http://www.microsoft.com/sql/2005/productinfo/l...

New SQL Server 2005 Drop on MSDN...September CTP?
New SQL Server 2005 Drop on MSDN...September CTP?
September 13, 2005

Url: https://msdn.one.microsoft.com/Subscriber/1033/...

Interviewed as Database Geek of the Week
Interviewed as Database Geek of the Week
July 18, 2005

Url: http://www.simple-talk.com/2005/07/18/database-...

Well Thought Out Blog on Typed DataSets
Well Thought Out Blog on Typed DataSets
June 21, 2005

Url: http://jelle.druyts.net/PermaLink.aspx?guid=616...

Oracle 10g Supporting the CLR?
Oracle 10g Supporting the CLR?
June 20, 2005

Url: http://news.com.com/Oracle+readies+second+grid+...

SQL Server CLR Integration: Part 2
SQL Server CLR Integration: Part 2
June 3, 2005

Url: http://www.devsource.com/article2/0,1759,182186...

DataSets vs. Custom Entities Again...
DataSets vs. Custom Entities Again...
May 21, 2005

Url: http://www.devcow.com/weblogs/To+Use+DataSets+O...

New Article:  "SQL Server CLR Integration: Part 1"
New Article: "SQL Server CLR Integration: Part 1"
May 2, 2005

Url: http://www.devsource.com/article2/0,1759,179167...

SQL Server 2005 Omissions
SQL Server 2005 Omissions
April 29, 2005

I've been digging deep into SQL Server 2005's CLR integration over the last few days.  I am surprised by several specific omissions.  My guess is that they have been dropped because of time constraints:

If You Attended my SQL Server 2005 CLR Talk Recently...
If You Attended my SQL Server 2005 CLR Talk Recently...
April 27, 2005

Forget everything I told you.  It's all changed in the April CTP.  I hope to re-give this talk soon in the Atlanta area with the new bits.

Jim Gray Discusses 2 vs 3 Tier Model, et al.
Jim Gray Discusses 2 vs 3 Tier Model, et al.
March 28, 2005

Url: http://channel9.msdn.com/ShowPost.aspx?PostID=5...

Why I Don't Like the Data Access Block (in the Enterprise library, circa Jan 05)
Why I Don't Like the Data Access Block (in the Enterprise library, circa Jan 05)
March 28, 2005

Url: http://wildermuth.com/content.aspx?id=rantview&...

Why I Don't Like the Data Access Block (v2)
Why I Don't Like the Data Access Block (v2)
March 28, 2005

Url: http://www.microsoft.com/downloads/details.aspx...

New Oracle .NET Technology Center
New Oracle .NET Technology Center
February 21, 2005

Url: http://www.oracle.com/technology/tech/dotnet/in...

Is Data Access Really This Hard?
Is Data Access Really This Hard?
February 15, 2005

I've been spending some time lately reviewing how companies are doing data access in .NET.  When I look at how most of them have crufted up solutions, I am amazed.  The model that Microsoft supports seems so obvious to me, but I am neck deep in it.  I'd like to hear from my readers their specific experience with creating data access in .NET; with an eye to why or why not use COM+ for transactions; Typed DataSet or DataReaders; Business Objects or Messages.  I am trying to understand where the community is.

Using Data in Reporting Services Footers
Using Data in Reporting Services Footers
February 7, 2005

Url: http://www.sqlmonster.com/Uwe/Forum.aspx/sql-se...

Yukon and User Defined Types (UDTs)
Yukon and User Defined Types (UDTs)
February 3, 2005

Url: http://codebetter.com/blogs/sahil.malik/archive...

In Response to Sahil Malik's Null problem
In Response to Sahil Malik's Null problem
January 25, 2005

Url: http://dotnetjunkies.com/WebLog/sahilmalik/arch...

Data Part 2: n-Tier...Gone Tomorrow
Data Part 2: n-Tier...Gone Tomorrow
October 8, 2004

Recently I was talking with Rocky Lhotka and he said something interesting:

Data Part 1:  Business Objects, Messages and DataSets...
Data Part 1: Business Objects, Messages and DataSets...
October 7, 2004

I've had time lately to think about the nature of data in development lately.  I've been talking with Rocky Lhotka and Michael Earls about it (as well as number of others) about the issues with dealing with data in applications. 

Connections, Command and Transactions...oh my!
Connections, Command and Transactions...oh my!
October 6, 2004

I was taking a refresher MCSD test today to get ready to take one of the tests and came upon a question that is wrong.  But it does infer that there is some confusion about how transactions are propogated to commands...or may be evidence that it is a bug.  For example:

UML/Database Modeler that I actually like!
UML/Database Modeler that I actually like!
August 20, 2004

Url: http://www.sparxsystems.com

No Yukon and VS.NET Betas at TechEd Europe?
No Yukon and VS.NET Betas at TechEd Europe?
June 29, 2004

Url: http://news.com.com/Microsoft+reaches+beyond+pr...

VS.NET and SQL Server "Express"?
VS.NET and SQL Server "Express"?
June 29, 2004

Url: http://news.com.com/Microsoft+reaches+beyond+pr...

Yukon and Whidbey Slip!
Yukon and Whidbey Slip!
March 10, 2004

Url: http://news.com.com/2100-1012_3-5172166.html?ta...

SQL 2000 Reporting Services
SQL 2000 Reporting Services
February 3, 2004

Url: http://www.microsoft.com/sql/reporting/howtobuy...

Making Sense of Object-to-Relational Mappings
Making Sense of Object-to-Relational Mappings
November 17, 2003

I've been following some threads on the DevelopMentor .NET Mailing Lists about what is a good solution for O/R Mapping.  I am intrigued by a couple of ideas, especially ones that no one seems to be talking about:

DataSets are IMDB, Almost
DataSets are IMDB, Almost
May 7, 2002

Anyone else remember the promised "In-Memory Database" (IMDB) that was to be part of COM+ some years back? Well, Microsoft has finally delivered a first version of it in ADO.NET's DataSet class.

Let the Database Do Its Job
Let the Database Do Its Job
April 24, 2002

Ok, this pet peeve is a biggie. Over and over I have seen database schemas that simply defined the table structures and some stored procedures. Most modern database systems support advanced features for maintaining database integrity.

Remember That Those Connections are Precious
Remember That Those Connections are Precious
April 11, 2002

The most common error I see in badly scalable database code is reckless use of the connection object. For all multi-user database programming (which accounts for most of the work these days), database connections are a limited resource. Don't let it be your code that is hanging on to his connection way after you are finished with it. I am *not* saying that all work can be done disconnected. I am simply asking you to keep in mind that Connections are precious things. Try to do these two things: