Search

You searched for the word(s): userid:3402
Page 1 of 10 (96 items) 1 2 3 4 5 Next > ... Last »
  • TFS Upgrade Nightmares

    Recently we needed to upgrade our TFS 2012 server to TFS 2013. The last time we upgraded TFS 2010 to TFS 2012 it was a nightmare so we took some more precautions this time. Alas they didn’t help. This upgrade proved to be just as big of a nightmare as the last time. Here’s my story of upgrading TFS based upon my 2 previous attempts. Let’s start with our environment. We have the TFS 2012 application tier hosted on its own Windows Server 2008 R2 machine. When we first installed TFS
    Posted to P3.NET (Weblog) by Michael Taylor on Sat, Apr 12 2014
    Filed under: TFS
  • A Smarter WCF Service Client, Part 4

    In the last article we presented a solution for calling WCF services that needed only a single line of code and no using statements. But it had many limitations including Reliance on a static class Testability was low for any code using it Reliance on the WCF client rather than the contract Not optimized for multiple calls In reality the previous series of articles where all about setting up the infrastructure to support the final solution. All this infrastructure will be hidden from code when we
    Posted to P3.NET (Weblog) by Michael Taylor on Sat, Mar 15 2014
    Filed under: wcf
  • A Smarter WCF Service Client, Part 3

    In the last article we replaced the standard WCF service client with an improved version. But beyond solving an issue with cleaning up the client we haven’t really improved the calling code any. In this article we are going to look at one approach for making the calling code cleaner. The less code that is needed to call something the cleaner it tends to make code. We will present one approach for making WCF calls one-liners. This is not always the best solution so we will talk about the disadvantages
    Posted to P3.NET (Weblog) by Michael Taylor on Sun, Feb 23 2014
    Filed under: wcf
  • A Smarter WCF Service Client, Part 2

    In the last article we made a case for why the standard WCF client generated by a service reference is not a great idea. Among the issues listed were testability and proper cleanup. To fix these issues we will need to ultimately replace service references altogether but this is time consuming for large code bases. When we started down this path at my company we did it using an iterative approach. While the intermediate stages may appear to be (and, in fact, may be) a step back we are ultimately working
    Posted to P3.NET (Weblog) by Michael Taylor on Sun, Feb 9 2014
    Filed under: wcf, T4
  • A Smarter WCF Service Client, Part 1

    WCF is a great way to implement service-based APIs but the standard approach to consuming a service lacks a lot to be desired. In this series of articles I will discuss the approach that I’ve used in commercial applications to make consuming WCF services much cleaner and simpler. We will start with the standard approach and identify its flaws. From there we will work toward a solution that has minimal impact on consumers while providing maximal benefit. The solution itself is large but not
    Posted to P3.NET (Weblog) by Michael Taylor on Sun, Feb 2 2014
    Filed under: wcf, T4
  • Adding Dates to C#

    In .NET the DateTime type represents both a date and a time. .NET doesn’t really have a pure date type. Ironically it does have a pure time type in the form of TimeSpan . In general this isn’t an issue but when you really just need a date (i.e. the end of a grading period) then you have to be aware of the time. For example when comparing 2 date/time values the time is included in the comparison even if it does not matter. To eliminate time from the comparison you would need to set both
    Posted to P3.NET (Weblog) by Michael Taylor on Mon, Dec 23 2013
    Filed under: .net
  • Entity Framework 6 Conventions

    I was incredibly excited when conventions were finally made public in EF6. A convention allows you to set up a policy that a model will follow. For example EF comes with a convention that tables are plural by entities are singular. EF has supported conventions for a while but the necessary public interface was not exposed until EF6. In this post I’m going to walk through creating a simple convention. Data Annotations A data annotation is an attribute that you can apply to a model property to
    Posted to P3.NET (Weblog) by Michael Taylor on Mon, Nov 4 2013
    Filed under: Entity Framework
  • Language Friendly Type Names

    .NET uses Type everywhere to represent type information. Not surprisingly Type is language-agnostic. In many cases it is useful to get the friendly (aka language-specific) name for a Type object. .NET does not provide this easily. There are several different approaches but none of them work really well if you want the name that would have been used in your favorite language. This post will discuss some of the options available and then provide a more general solution to the problem that doesn’t
    Posted to P3.NET (Weblog) by Michael Taylor on Sun, Sep 29 2013
    Filed under: .net
  • Entity Framework and User Context

    Auditing is generally important in most databases because it is important to know who changed data and when. How auditing data is stored depends upon the system requirements but in general the date/time and user who made a change is important. SQL Server already provides the infrastructure to identify the who and what. Setting up EF to provide this information is straightforward once you know how EF works. In this post I’ll illustrate a simple approach we’ve been using in web applications
    Posted to P3.NET (Weblog) by Michael Taylor on Fri, Sep 13 2013
    Filed under: Entity Framework
  • Environmental Transforms/AppSettings Transforms for Visual Studio 2013 Preview

    In a recent series of articles I discussed how to create an environmental tranform template that could be run on each build. I also posted a series of articles on how to generate a template to generate a strongly typed class to back appsettings in a configuration file. Alas shortly thereafter VS2013 Preview was released and changes to VS have broken the code. This post will discuss the minor changes that need to be made to get everything to work. Shared Targets The first problem is with the shared
    Posted to P3.NET (Weblog) by Michael Taylor on Mon, Jul 29 2013
    Filed under: Visual Studio, T4
Page 1 of 10 (96 items) 1 2 3 4 5 Next > ... Last »