Giter Site home page Giter Site logo

gabrielpenteado / crud-aspnet-dotnet-csharp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 913 KB

CRUD operations; created with ASP.NET, .NET and C#

License: MIT License

HTML 28.71% C# 68.95% CSS 1.98% JavaScript 0.37%
asp-net asp-net-core aspnetcoreidentity csharp dotnet dotnet-core razor-pages

crud-aspnet-dotnet-csharp's Introduction

CRUD-ASP.NET-.NET-C#

CRUD operations; created with ASP.NET, .NET and C#

license dot net version

Build with

C# .NET SQLite

Requirements

Instalattion

  1. to create a new project.
    dotnet new razor -o <projectName> --auth Individual

  2. Install Entity Framework package for SQLite.
    dotnet add package Microsoft.EntityFrameworkCore.SQLite

  3. Install dotnet-ef.
    dotnet tool install --global dotnet-ef

  4. Create migrations.
    dotnet ef migrations add <migrationsName>

  5. Update database.
    dotnet ef database update

  6. Scaffolding (creating controllers and views with one command).
    dotnet tool install -g dotnet-aspnet-codegenerator

  7. Generate the code based on Entity Framework.
    dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design

To generate the code pages CREATE, EDIT, READ, DETAILS, DELETE for the Student model

dotnet aspnet-codegenerator razorpage Create Create -m Student -dc ApplicationDbContext -sqlite -udl -outDir Pages/Students
dotnet aspnet-codegenerator razorpage Edit Edit -m Student -dc ApplicationDbContext -sqlite -udl -outDir Pages/Students
dotnet aspnet-codegenerator razorpage Index List -m Student -dc ApplicationDbContext -sqlite -udl -outDir Pages/Students
dotnet aspnet-codegenerator razorpage Details Details -m Student -dc ApplicationDbContext -sqlite -udl -outDir Pages/Students
dotnet aspnet-codegenerator razorpage Delete Delete -m Student -dc ApplicationDbContext -sqlite -udl -outDir Pages/Students

To generate the code pages CREATE, EDIT, READ, DETAILS, DELETE for the Subscrition model

dotnet aspnet-codegenerator razorpage Create Create -m Subscription -dc ApplicationDbContext -sqlite -udl -outDir Pages/Subscriptions
dotnet aspnet-codegenerator razorpage Edit Edit -m Subscription -dc ApplicationDbContext -sqlite -udl -outDir Pages/Subscriptions
dotnet aspnet-codegenerator razorpage Index List -m Subscription -dc ApplicationDbContext -sqlite -udl -outDir Pages/Subscriptions
dotnet aspnet-codegenerator razorpage Details Details -m Subscription -dc ApplicationDbContext -sqlite -udl -outDir Pages/Subscriptions
dotnet aspnet-codegenerator razorpage Delete Delete -m Subscription -dc ApplicationDbContext -sqlite -udl -outDir Pages/Subscriptions

  • to run this project:
  1. Clone the repository.
    dotnet tool install --global dotnet-ef

  2. Run Application.
    dotnet run

๐Ÿค Contributions

PRs Welcome
The foundation of the open source community are the contributions, them inspire us to learn and create. Any contributions are greatly appreciated.

๐Ÿ“„ License

This project is licensed under the MIT License. See the LICENSE.md file for details.

Gabriel Penteado

Full Stack Developer

LinkedIn GitHub Gmail

crud-aspnet-dotnet-csharp's People

Contributors

gabrielpenteado avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.