title: How to use a different base class in blazor page model partial declaration?
body: <p>I am trying to use a pagemodel class in a client side Blazor in a way so i dont have to retype all the "base" properties</p>
  
  <p>I was thinking of creating class</p>
  
  <pre><code>public partial class SomePage : BasePage
  { }
  </code></pre>
  
  <p>Error   CS0263  Partial declarations of 'Somepage' must not specify different base classes  </p>
  
  <p>My base classe looks like this</p>
  
  <pre><code> public class BasePage : ComponentBase
      {
          [Inject]
          protected NavigationManager NavigationManager { get; set; }
  
          [Inject]
          protected HttpClient Http { get; set; }
  
      }
  </code></pre>
  
  <p>I also tried changing adding IComponent, IHandleEvent, IHandleAfterRender
  so it looks like this</p>
  
  <pre><code> public class BasePage : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
  </code></pre>
  
  <p>but that did not help.</p>
  
  <p>Any ideas how to inherit from a base class in PageModel partial declaration?</p>