MarimerLLC / cslaforum

Discussion forum for CSLA .NET

Home Page:https://cslanet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSLA 5.2.0-20050802 prerelease

rockfordlhotka opened this issue · comments

I have pushed a new prerelease to NuGet. We are less than two weeks from the release of Blazor WebAssembly from Microsoft, so verison 5.2.0 is now at a feature freeze. Only bug fixes from this point forward.

There are a couple Blazor related changes you'll need in your code to update to this version from 5.1.0.

Blazor ViewModel RefreshAsync

The RefreshAsync method now accepts only a data portal or factory method.

  vm.RefreshAsync(() => Csla.DataPortal.FetchAsync<PersonEdit>(id));

The old approach didn't work this way, and you'll need to update all uses of RefreshAsync accordingly.

Client-side Blazor NuGet Package

There is a new Csla.Blazor.WebAssembly NuGet package. This is the package you must reference in a client-side Blazor UI project. No change is required to server-side or common UI Blazor projects.

In the csproj file:

  <ItemGroup>
    <PackageReference Include="Csla.Blazor.WebAssembly" Version="5.2.0-R20050802" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0-rc1.20223.4" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0-rc1.20223.4" PrivateAssets="all" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0-rc1.20223.4" PrivateAssets="all" />
    <PackageReference Include="System.Net.Http.Json" Version="3.2.0-preview5.20210.3" />
    <PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview3.20168.3" />
  </ItemGroup>