Giter VIP home page Giter VIP logo

asp.net-basic's Introduction

C# Basic CRUD Learning Repository

I am currently learning ASP.NET core Web API with SQL Server and Entity Framework Core. This repository is a learning project that I am using to practice the basics of C# development, including CRUD operations, data modeling, and database migrations.

Overview

This repository provides a basic implementation of CRUD operations using C# and a relational database. The project structure and code samples are designed to guide you through the process of working with data, performing CRUD operations, and understanding key concepts in C# development.

Getting Started

To get started with this repository, follow these steps:

  1. Clone the repository to your local machine using the command:

  2. Open the project in your preferred development environment (such as Visual Studio, Visual Studio Code, or JetBrains Rider).

  3. Set up the database:

  • Ensure that you have a local or remote database server (such as SQL Server, MySQL, or PostgreSQL) available.
  • Configure the database connection settings in the project's configuration files (such as appsettings.json) to point to your database server.
  1. Run the application:
  • Build the project to ensure that all dependencies are resolved.
  • Run the application to start the CRUD learning environment.

Project Structure

The project is organized as follows:

  • Models: Contains the C# classes that represent the entities in the database (e.g., Student, Course, Enrollment, Instructor, Course Assignment,...).
  • Data: Contains the DbContext class (e.g., SchoolContext) responsible for interacting with the database and performing CRUD operations.
  • Controllers: Contains the API controllers that handle the HTTP requests and execute the corresponding CRUD operations.
  • Views: Not applicable for this repository since it focuses on building API controllers.
  • Migrations: Contains the database migration files generated by Entity Framework Core to create and update the database schema based on changes in the models.

asp.net-basic's People

Contributors

shuaixiaoqiang avatar

Stargazers

 avatar  avatar  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.