title: ASP.net: how to store array of day checkboxes into MSSQL?
body: <p>Good day. MSDN says that <code>bit</code> MSSQL datatype mapping onto <code>bool</code> C# datatype. ASP.net map checkbox onto <code>bool</code>, if i currently understand. And i need to store set of checkboxes states (bool[]).</p>
  
  <p>Constants.cs contains this line:</p>
  
  <pre><code>public static string[] Days =&gt; new string[] { "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" };
  </code></pre>
  
  <p>View.cshtml contains this:</p>
  
  <pre><code>@foreach (var day in Constants.Days)
  {
      &lt;div class="form-group"&gt;
          &lt;label class"&gt;@day&lt;/label&gt;
          &lt;input name="Days" type="checkbox" class="checkbox-inline" /&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>And this, i think, will be mapped on bool[]. But here is no possible ways to store bool array in db? Or how to store set of checkboxes states in Db? </p>