This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@ip-172-31-12-139:~$ history | |
1 sudo apt update && sudo apt upgrade -y | |
2 sudo apt install -y wget apt-transport-https software-properties-common | |
3 wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
4 sudo dpkg -i packages-microsoft-prod.deb | |
5 sudo apt update | |
6 sudo apt install -y dotnet-sdk-8.0 | |
7 sudo apt update | |
8 sudo apt install -y dotnet-runtime-8.0 | |
9 dotnet --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net.Security; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using OpenPop.Common.Logging; | |
using OpenPop.Mime; | |
using OpenPop.Mime.Decode; | |
using OpenPop.Mime.Header; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
udo nano /etc/systemd/system/Aayurveda.service | |
[Unit] | |
Description=.NET 8 App | |
After=network.target | |
[Service] | |
WorkingDirectory=/var/www/Ayurveda/publish | |
ExecStart=/usr/bin/dotnet /var/www/Ayurveda/publish/Ayurveda.dll | |
Restart=always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Project.sh | |
dotnet add package Microsoft.EntityFrameworkCore.Design | |
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL | |
dotnet ef dbcontext scaffold "Host=localhost;Database=Organization;Username=postgres;Password=1234" Npgsql.EntityFrameworkCore.PostgreSQL -o Models | |
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design | |
dotnet add package Microsoft.EntityFrameworkCore.SqlServer | |
dotnet tool install --global dotnet-aspnet-codegenerator | |
dotnet aspnet-codegenerator --help | |
dotnet add package Microsoft.EntityFrameworkCore.Tools | |
dotnet aspnet-codegenerator controller -name MstGallaryController -m MstGallary -dc OrganizationContext --relativeFolderPath Controllers --useDefaultLayout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROCEDURE [Account_LogIn] | |
@UserName NVARCHAR(200), | |
@Password NVARCHAR(MAX) | |
AS | |
BEGIN | |
SET NOCOUNT ON; | |
DECLARE @AspNetUserID NVARCHAR(256), | |
@UserType NVARCHAR(200), | |
@TableID INT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--https://drive.google.com/file/d/1ddUxGN69HDF1F7iGZ4dPlM5ZZluGtiFH/view?usp=sharing | |
CREATE TABLE Country ( | |
CountryID INT PRIMARY KEY IDENTITY(1,1), | |
CountryName VARCHAR(100) UNIQUE | |
); | |
CREATE TABLE State ( | |
StateID INT PRIMARY KEY IDENTITY(1,1), | |
StateName VARCHAR(100) UNIQUE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ######################################################### | |
-- Author: https://theuniqueitsolution.com/ | |
-- Copyright: (c) https://theuniqueitsolution.com/. You are free to use and redistribute | |
-- this script as long as this comments section with the | |
-- author and copyright details are not altered. | |
-- Purpose: For a specified user-defined table (or all user-defined | |
-- tables) in the database this script generates 4 Stored | |
-- Procedure definitions with different Procedure name | |
-- suffixes: | |
-- 1) List |