title: Represent a single-rowed table in EF?
body: <p>I have a configuration table in my database and it contains exactly one row.</p>
  
  <pre><code>ConfirmedScheduleColor | OverlappedScheduleColor | ColN
  </code></pre>
  
  <p>Currently, I'm retrieving the configuration like this:</p>
  
  <pre><code>var db = new SchedulingDbContext();
  var config = db.Configurations.FirstOrDefault();
  </code></pre>
  
  <p>It's currently working fine and I can access my configurations and all. The thing is, the code looks awkward since I'm accessing the Configurations <code>DbSet</code> as if it contains many records (<code>FirstOrDefault()</code>); although actually, it contains only one record. I want to access my configurations like I'm accessing a static object. How to do that in EF?</p>