Skip to content

Stock Market / Social Media Platform .NET Core Web API

Notifications You must be signed in to change notification settings

Faizanshaikh12/FinSharkWebAPI

Repository files navigation

FinSharkWebAPI

Stock Market / Social Media Platform .NET Core Web API

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/Faizanshaikh12/FinSharkWebAPI.git
    cd FinSharkWebAPI
  2. Restore the dependencies:

    dotnet restore

Running the Project

  1. Build the project:

    dotnet build
  2. Run the project:

    dotnet run
    dotnet watch run

Entity Framework Core Migrations

Adding a Migration

dotnet ef migrations add <MigrationName>
dotnet ef migrations add InitialCreate

Updating the Database

dotnet ef database update
dotnet ef database update <PreviousMigration>

Removing the Last Migration

dotnet ef migrations remove

Listing Migrations

dotnet ef migrations list

Generating SQL Script for Migrations

dotnet ef migrations script
dotnet ef migrations script <FromMigration> <ToMigration>
dotnet ef migrations script InitialCreate AddNewTable

About

Stock Market / Social Media Platform .NET Core Web API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages