I created a static class that I want to use in various projects. I am trying to make this as independent as I can but it's not updating and I'm getting no error messages. I am using .Net Framework 4.0 client.

Here is the code:

```
using System;
using System.Linq;

namespace SSS.ServicesConfig.data
{
  public partial class GlobalSetting
  {

    public static GlobalSetting GetGlobalSetting()
    {
      try
      {
        using (var context = new SuburbanEntities())
        {
          return (from gs in context.GlobalSettings
                  select gs).FirstOrDefault();
        }
      }
      catch (Exception ex)
      {
        Logging.Log("An error occurred.", "GetGlobalSetting", Apps.ServicesConfig, ex);
        throw new Exception(string.Format("Unable to retrieve data: [{0}].", ex.Message));
      }
    }

    public static void SaveGlobalSettings(GlobalSetting globalSetting)
    {
      using (var context = new SuburbanEntities())
      {
        context.Attach(globalSetting);
        context.SaveChanges();
      }
    }
  }
}

```

Is the attach not done the right way? If not, how should I be saving it when it comes back in?