Blog Stats
  • Posts - 59
  • Articles - 0
  • Comments - 128
  • Trackbacks - 0

 

C#

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Setting a default button when using master pages

Its always the little things in life! This was pretty easy...once I found it that is. this.Form.DefaultButton = this.ButtonControl.UniqueID
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Annonymous access to a page in a forms authenticated web site

An issue came up today where we were wondering how to put a non-secured page in a secured web site using forms authentication. After a bit of research, I found that you can add this short snipet of code to your web config...and you have it - an annonymously accessible page in a secure site. ... <authorization> <deny users="?"/> </authorization></... <location path="enviaSMS.asmx"> <system.web> <authorization> <allow users="*"/> </authorization>...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

 

Copyright © Andrew Siemer - www.andrewsiemer.com