title: C# WCF - ADO.NET Entity model - DbSet empty?
body: <p>I created a new WCF project in visual studio based on a existing database.
  I made two operations. One operation writes a record (createProfile) to the database and one retrieve data (GetProfiles). My project exists of 3 files: web.config, a edmx file and my svc class.</p>
  
  <p>CreateProfile works fine, I checked in SQL and the record is created.
  GetProfiles never gives a response. When I debug the context.UserProfileSet always counts 0 values.</p>
  
  <p>Any suggestions on what is going wrong?</p>
  
  <pre><code>[DataContract]
  public partial class UserProfile
  {
      public int Id { get; set; }
      [DataMember]
      public string UserName { get; set; }
  }
  
  
  
  
  public class MusicOwnerService : IMusicOwnerService
  {
      IEnumerable&lt;UserProfile&gt; GetProfiles()
      {
          using (MusicOwnerDatabaseEntities context = new MusicOwnerDatabaseEntities())
          {
              return context.UserProfileSet.AsEnumerable();
          }
      }
  
  
      public void CreateProfile()
      {
          using (MusicOwnerDatabaseEntities context = new MusicOwnerDatabaseEntities())
          {
              context.UserProfileSet.Add(new UserProfile { UserName = "John" });
              context.SaveChanges();
          }
      }
  }
  </code></pre>