title: setting a value based on another value in a linq query
body: <p>I'm changing a variable from a string a byte in my business logic but I'm not touching the database field that contains the value yet. So in the meantime, I'm looking for a c# equivalent to javascript's conditional syntax <code>SomeValue = (TestValue === Something) ? 1 : 2;</code></p>
  
  <p>Basically, the linq-to-sql query I have looks like this:</p>
  
  <pre><code>var TheOutput = from x in MyDC.SomeTable
                  ....
                  select new SomeModel()
                  {
                       SomeByte = (x.SomeField === "test") ? 1 : 0
                  }
  </code></pre>
  
  <p><code>SomeField</code> is a string and if it's equal to some test string then I want the property of the output's model to be set to a byte.</p>