-
Recent Posts
Recent Comments
Archives
Categories
Meta
Author Archives: david
Visual Studio 2010 Database Projects
I’ve never used a database project in a Visual Studio solution before. In most of the places I’ve worked, the database is managed by full time DBA’s, who deal in sql scripts taylored to make specific schema updates. So i … Continue reading
New Info Format
I’ve a been working on the plan to add cheat sheets for the major technologies I work with. I think it would be worth adding example code and projects. Rather than hosting the code on my site I’m going to … Continue reading
Posted in Uncategorized
Leave a comment
I’m Back
So that was a little odd. I’ve been working as a permi for a bit. My wife and I moved back to Scotland, mostly to be nearer to friends and family. I couldn’t get any contract work up here and … Continue reading
Posted in Uncategorized
Leave a comment
WAS net.tcp
Another reminder. If you are using WAS to host a WCF service using net.Tcp, make sure the net.tcp listener and net.tcp port sharing services are set to run on the deployment machine. They are disabled by default. Connection refused is … Continue reading
ApplicationPoolIdentity and SQL Server Logins
Something I keep forgetting. IIS on 2008R2 has created a special class of user to represent the security principal for code running in an app pool. In the IIS manager the Identity is shown as ApplicationPoolIdentity. The actual user for … Continue reading
JQuery and Json with Asp.Net MVC 3
What a sad alphabet soup of acronyms this post has for a title… Just a quick note on using Json ajax requests with asp.net mvc 3. Adding a hnadler for a json request to a controller is easy, the return … Continue reading
Posted in Uncategorized
Leave a comment
Entity Framework and POCOs
So I finally got around to trying Entity Framework with POCOs, where the domain model objects were hand coded and there was an aleady existing database. The process was initially simple: run the tool that creates a model diagram of … Continue reading
Git and SSH and Pass Phrases
Continuing with the .Net development under VMware, One useful tip if you use the git bash shell (here) for your version control on windows, and have to access remote repositories over ssh, and you want to skip entering the passphrase at … Continue reading
Posted in Uncategorized
Leave a comment
XAML Irritation
Can anyone explain the following: <Style TargetType=”{x:Type Button}” BasedOn=”{StaticResource FontStyle}”> <Setter Property=”Template”> <Setter.Value> <!– wont work without respecifying the TargetType…?–> <ControlTemplate TargetType=”{x:Type Button}”> <Border Background=”{TemplateBinding Property=Background}”> <ContentPresenter/> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> As in – why does the TargetType have … Continue reading
Sum and Count in EF
It bugs me that I need to play around with casting in linq expressions just to make aggregate functions safe. For example: decimal? total = storeDb.Carts .Where(cart => cart.CartId == ShoppingCartId) .Select(c => (decimal ?)c.Count * c.Album.Price) .Sum(); See that … Continue reading