Andrew Siemer's Blog

Enterprise Web Applications, ASP.NET MVC, C#, SQL Server, Architecture, & Writing
posts - 61 , comments - 146 , trackbacks - 0

My Links

News

Twitter












Tag Cloud

Archives

Post Categories

Friends

My Other Blogs

My public profiles

LINQ

Converting a System.Data.Linq.Binary (or timestamp) to a string and back again to avoid LINQ concurrency issues
I have been working on getting around the concurrency issues that LINQ has while working with disconnected DataContext's in an nTier environment. I currently have a Timestamp field in all of my tables to act as a row version number to help LINQ keep track of what is going on with my data. Up to this point I haven't had any issues as I have been working with objects that were either stored in session/cache as whole objects or I have been reconstituting the object from a new DataContext prior to updating ......

Posted On Monday, February 11, 2008 12:04 PM | Comments (25) | Filed Under [ ASP.NET C# LINQ ]

LINQ to SQL - many to many relationships not supported! (yet?)
I felt the need to vent a little bit of frustration today as I spent an entire weekend trying my best to figure out how to get LINQ to SQL to support what I consider to be a fairly standard database design concept - many to many relationships. In my case I have a table of Permissions and a table of Accounts. Rather than storing a list of permissions in my Accounts table I simply wanted to store both Accounts and Permissions separately and then link them together with a linking table. I don't think ......

Posted On Tuesday, January 15, 2008 6:39 PM | Comments (7) | Filed Under [ ASP.NET C# LINQ ]

Powered by: