title: Blazor Server App - Use SQLite values on my Index
body: <p>I have calculator and use inputs and system values to get results,</p>
  <p>The app:
  <a href="https://i.stack.imgur.com/i41sJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i41sJ.png" alt="enter image description here" /></a></p>
  <p>Example:</p>
  <p>Inputs:</p>
  <pre><code>    &lt;div class=&quot;col-sm-6&quot;&gt;
          &lt;label&gt;Gross Tonnage&lt;/label&gt;
          &amp;nbsp;&lt;img src=&quot;data:text/plain;base64,AAABAAEAEBAAAAEAI=&quot;
                     title=&quot;Type the gross tonnage of the vessel.&quot; /&gt;
          &lt;InputNumber style=&quot;width: 100%&quot; @bind-Value=&quot;model.GrossTonnage&quot; class=&quot;form-control&quot; /&gt;
          &lt;ValidationMessage For=&quot;@(() =&gt; model.GrossTonnage)&quot; /&gt;
      &lt;/div&gt;
  </code></pre>
  <p>System Values:</p>
  <pre><code>    public double methanolcf { get; set; } = 1.375;
      public double ethanolcf { get; set; } = 1.913;
  </code></pre>
  <p>I have both inputs and system values @bind-value on one model and use them in calculations like this:</p>
  <pre><code>   if (model.ethanolcf &gt; model.GrossTonnage)
     {
          model.average=0.5;
     }
  </code></pre>
  <p>Values like Methanol and Ethanol will change during the years so I have created a Login -&gt; Admin Panel page and created an SQLite using this (tutorial: <a href="https://www.youtube.com/watch?v=zPZVMw4i_Qw&amp;t=902s&amp;ab_channel=TechnicalBundle" rel="nofollow noreferrer">https://www.youtube.com/watch?v=zPZVMw4i_Qw&amp;t=902s&amp;ab_channel=TechnicalBundle</a> and source code: <a href="https://github.com/technicalbundle/blazorservercrudefsqlite" rel="nofollow noreferrer">https://github.com/technicalbundle/blazorservercrudefsqlite</a> ) in order to avoid having to modify source code every time a value changes.</p>
  <p>So now I have this admin page and I want to be able to use the values from the database on my Index page,</p>
  <p><a href="https://i.stack.imgur.com/84tB1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/84tB1.png" alt="enter image description here" /></a></p>
  <p>for example, if I update the Methanol value on my Admin then this should also get updated:</p>
  <p><a href="https://i.stack.imgur.com/U4nlI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U4nlI.png" alt="enter image description here" /></a></p>
  <p>Maybe this helps explain:
  <a href="https://i.stack.imgur.com/xEjos.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xEjos.png" alt="enter image description here" /></a></p>