Skip to content

Gabriele1998/CodeSchool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeSchool

this repository is for learning to use dotnet core Aggiunta 1

dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Microsoft.EntityFrameworkCore.Design

Aggiunta 2

<ItemGroup>
  <ProjectReference Include="app.csproj" />
  <ProjectReference Include="..\lib2\lib2.csproj" />
  <ProjectReference Include="..\lib1\lib1.csproj" />
</ItemGroup>

Aggiunta 3 Occhio Assembly

services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
    var connection = "Data Source=anagrafica.db";
    services.AddDbContext<AnagraficaContext>
        (options => options.UseSqlite(connection, b => b.MigrationsAssembly("AspNetMvc")));

Aggiunta 4

dotnet ef migrations add InitialCreate
dotnet ef database update

Aggiunta 5

dotnet tool install -g dotnet-aspnet-codegenerator
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet restore
dotnet aspnet-codegenerator controller -name <TuoController>Controller -m Blog -dc <TuoContext>Context --relativeFolderPath Controllers --useDefaultLayout --referenceScriptLibraries

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 47.5%
  • HTML 26.2%
  • C# 16.4%
  • JavaScript 8.1%
  • TypeScript 1.8%