Base solution for your next web application

Activities of "bsolutions"

The solution: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1413">https://github.com/aspnetboilerplate/as ... ssues/1413</a>

Add script like that:

<script src="~/AbpServiceProxies/GetAll?type=jquery&v=@(Clock.Now.Ticks)" type="text/javascript"></script>

Thanks @Fengol! That is the best solution!

For the sake of completeness here the new *.csproj file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
    <PackageTargetFallback>$(PackageTargetFallback);dotnet5.6;portable-net45+win8</PackageTargetFallback>
    <RootNamespace>CompanyName.ProductName</RootNamespace>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.2" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.1" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.2" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.1" />
  </ItemGroup>
  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.1" />
  </ItemGroup>
</Project>

I found a Solution!

With the new .NET Core 1.1 template you can use the Package Manager Console within Visual Studio to add migrations or update the database:

  1. Set the Web.Mvc project as start-up project
  2. Open Package Manager Console and set the EntityFrameworkCore project as default project. 3a. Use Add-Migration <NAME> to add a new migration. 3b. Use Update-Database to update the database with the latest migration.

I hope the boilerplate crew updates the documentation as fast as can be ;)

Answer

This is duplicate with this post: #2690

Showing 1 to 4 of 4 entries