title: How to accept a Guid as an input type in Blazor Server
body: <p>I have an app in which im trying to create a record of the type:</p>
  <pre><code>public class ObfuscatingTradeDatum
  {
      public int Id { get; set; }
      [Required]
      public string ProviderName { get; set; }
      [Required]
      public string ClientNameAsAppearsOnTradeData { get; set; }
      [Required]
      public string ClientCode { get; set; }
      [Required]
      public Guid ProviderDynamicsId { get; set; }
      [Required]
      public Guid TraderDynamicsId { get; set; }
  }
  </code></pre>
  <p>My blazor page is of the form:</p>
  <pre><code>&lt;EditForm Model=&quot;@ObfuscatingTradeData&quot; OnValidSubmit=&quot;@HandleValidSubmit&quot;&gt;
  &lt;DataAnnotationsValidator /&gt;
  &lt;div class=&quot;form-group&quot;&gt;
      &lt;label&gt;Provider Name:&lt;/label&gt;
      &lt;div&gt;
          &lt;InputText @bind-Value=&quot;@ObfuscatingTradeData.ProviderName&quot; /&gt;
          &lt;ValidationMessage For=&quot;@(() =&gt; ObfuscatingTradeData.ProviderName)&quot; /&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group &quot;&gt;
      &lt;div&gt;
          &lt;label&gt;Client Name:&lt;/label&gt;
          &lt;div&gt;
              &lt;InputText @bind-Value=&quot;@ObfuscatingTradeData.ClientNameAsAppearsOnTradeData&quot; /&gt;
              &lt;ValidationMessage For=&quot;@(() =&gt; ObfuscatingTradeData.ClientNameAsAppearsOnTradeData)&quot; /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group &quot;&gt;
      &lt;div&gt;
          &lt;label&gt;Client Code:&lt;/label&gt;
          &lt;div&gt;
              &lt;InputText @bind-Value=&quot;@ObfuscatingTradeData.ClientCode&quot; /&gt;
              &lt;ValidationMessage For=&quot;@(() =&gt; ObfuscatingTradeData.ClientCode)&quot; /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group &quot;&gt;
      &lt;div&gt;
          &lt;label&gt;Provider Dynamics ID:&lt;/label&gt;
          &lt;div&gt;
              &lt;input type=&quot;text&quot; @bind=&quot;@ObfuscatingTradeData.ProviderDynamicsId&quot; /&gt;
              &lt;ValidationMessage For=&quot;@(() =&gt; ObfuscatingTradeData.ProviderDynamicsId)&quot; /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group &quot;&gt;
      &lt;div&gt;
          &lt;label&gt;Trader Dynamics ID:&lt;/label&gt;
          &lt;div&gt;
              &lt;input type=&quot;text&quot; @bind=&quot;@ObfuscatingTradeData.TraderDynamicsId&quot; /&gt;
              &lt;ValidationMessage For=&quot;@(() =&gt; ObfuscatingTradeData.TraderDynamicsId)&quot; /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;button type=&quot;submit&quot; class=&quot;btn btn-success&quot;&gt;@ButtonText&lt;/button&gt;
  </code></pre>
  
  <pre><code>@code {
      public ObfuscatingTradeDatum ObfuscatingTradeData = new ObfuscatingTradeDatum();
      [Parameter] public string ButtonText { get; set; } = &quot;Save&quot;;
      private void HandleValidSubmit() =&gt; Service.InsertObfuscatingTradeDatum(ObfuscatingTradeData);
  }
  </code></pre>
  <p>My issues occur on this line:</p>
  <pre><code>&lt;input @bind=&quot;@ObfuscatingTradeData.TraderDynamicsId&quot; /&gt;
  </code></pre>
  <p>What i would like is to use an input component that accepts Guids, this way I can get the built in validaiton that comes for free. However the following code throws the error &quot;The type 'System.Guid' is not a supported numeric type.&quot;:</p>
  <pre><code>&lt;InputNumber @bind-Value=&quot;@ObfuscatingTradeData.TraderDynamicsId&quot; /&gt;
  </code></pre>
  <p>This error makes sense, however from the search i have done I am not sure how to pass a guid as input. Any help would be greatly aprreciated.</p>
  <p>Many Thanks,</p>