-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
1,154 additions
and
4 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
dotnetproject/dotnetmsAddCustomer/.config/dotnet-tools.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-ef": { | ||
"version": "6.0.0", | ||
"commands": [ | ||
"dotnet-ef" | ||
] | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
dotnetproject/dotnetmsAddCustomer/Controllers/CustomerController.cs
This file contains 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
57 changes: 57 additions & 0 deletions
57
dotnetproject/dotnetmsAddCustomer/Migrations/20230921141952_SetupTables.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
dotnetproject/dotnetmsAddCustomer/Migrations/20230921141952_SetupTables.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace dotnetmsAddCustomer.Migrations | ||
{ | ||
public partial class SetupTables : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.EnsureSchema( | ||
name: "dbo"); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "customer", | ||
schema: "dbo", | ||
columns: table => new | ||
{ | ||
customer_id = table.Column<int>(type: "int", nullable: false) | ||
.Annotation("SqlServer:Identity", "1, 1"), | ||
customer_name = table.Column<string>(type: "nvarchar(max)", nullable: false), | ||
customer_mobilenumber = table.Column<string>(type: "nvarchar(max)", nullable: false), | ||
customer_email = table.Column<string>(type: "nvarchar(max)", nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_customer", x => x.customer_id); | ||
}); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "customer", | ||
schema: "dbo"); | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
dotnetproject/dotnetmsAddCustomer/Migrations/CustomerDbContextModelSnapshot.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// <auto-generated /> | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Infrastructure; | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
using dotnetmsAddCustomer.Models; | ||
|
||
#nullable disable | ||
|
||
namespace dotnetmsAddCustomer.Migrations | ||
{ | ||
[DbContext(typeof(CustomerDbContext))] | ||
partial class CustomerDbContextModelSnapshot : ModelSnapshot | ||
{ | ||
protected override void BuildModel(ModelBuilder modelBuilder) | ||
{ | ||
#pragma warning disable 612, 618 | ||
modelBuilder | ||
.HasAnnotation("ProductVersion", "6.0.0") | ||
.HasAnnotation("Relational:MaxIdentifierLength", 128); | ||
|
||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); | ||
|
||
modelBuilder.Entity("dotnetmsAddCustomer.Models.Customer", b => | ||
{ | ||
b.Property<int>("CustomerId") | ||
.ValueGeneratedOnAdd() | ||
.HasColumnType("int") | ||
.HasColumnName("customer_id"); | ||
|
||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("CustomerId"), 1L, 1); | ||
|
||
b.Property<string>("CustomerName") | ||
.IsRequired() | ||
.HasColumnType("nvarchar(max)") | ||
.HasColumnName("customer_name"); | ||
|
||
b.Property<string>("Email") | ||
.IsRequired() | ||
.HasColumnType("nvarchar(max)") | ||
.HasColumnName("customer_email"); | ||
|
||
b.Property<string>("MobileNumber") | ||
.IsRequired() | ||
.HasColumnType("nvarchar(max)") | ||
.HasColumnName("customer_mobilenumber"); | ||
|
||
b.HasKey("CustomerId"); | ||
|
||
b.ToTable("customer", "dbo"); | ||
}); | ||
#pragma warning restore 612, 618 | ||
} | ||
} | ||
} |
This file contains 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
Binary file not shown.
Binary file added
BIN
+350 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.Data.SqlClient.dll
Binary file not shown.
Binary file added
BIN
+29.9 KB
...oject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll
Binary file not shown.
Binary file added
BIN
+381 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Design.dll
Binary file not shown.
Binary file added
BIN
+203 KB
...etproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.InMemory.dll
Binary file not shown.
Binary file added
BIN
+1.42 MB
...project/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Relational.dll
Binary file not shown.
Binary file added
BIN
+441 KB
...tproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.SqlServer.dll
Binary file not shown.
Binary file added
BIN
+2 MB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.dll
Binary file not shown.
Binary file added
BIN
+1.25 MB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.Identity.Client.dll
Binary file not shown.
Binary file added
BIN
+61.4 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll
Binary file not shown.
Binary file added
BIN
+24.4 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.IdentityModel.Logging.dll
Binary file not shown.
Binary file added
BIN
+106 KB
.../dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
Binary file not shown.
Binary file added
BIN
+31.9 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.IdentityModel.Protocols.dll
Binary file not shown.
Binary file added
BIN
+850 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.IdentityModel.Tokens.dll
Binary file not shown.
Binary file added
BIN
+170 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.OpenApi.dll
Binary file not shown.
Binary file added
BIN
+22.6 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Microsoft.Win32.SystemEvents.dll
Binary file not shown.
Binary file added
BIN
+14.5 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Swashbuckle.AspNetCore.Swagger.dll
Binary file not shown.
Binary file added
BIN
+80 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerGen.dll
Binary file not shown.
Binary file added
BIN
+3.43 MB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/Swashbuckle.AspNetCore.SwaggerUI.dll
Binary file not shown.
Binary file added
BIN
+367 KB
...roject/dotnetmsAddCustomer/bin/Debug/net6.0/System.Configuration.ConfigurationManager.dll
Binary file not shown.
Binary file added
BIN
+140 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/System.Drawing.Common.dll
Binary file not shown.
Binary file added
BIN
+79.9 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/System.IdentityModel.Tokens.Jwt.dll
Binary file not shown.
Binary file added
BIN
+81.6 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/System.Runtime.Caching.dll
Binary file not shown.
Binary file added
BIN
+17.4 KB
...oject/dotnetmsAddCustomer/bin/Debug/net6.0/System.Security.Cryptography.ProtectedData.dll
Binary file not shown.
Binary file added
BIN
+90.4 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/System.Security.Permissions.dll
Binary file not shown.
Binary file added
BIN
+25.4 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/System.Windows.Extensions.dll
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/appsettings.Development.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/appsettings.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"AllowedHosts": "*", | ||
"ConnectionStrings": { | ||
"MyConnString":"User ID=sa;password=examlyMssql@123;server=localhost;Database=CheckDB;trusted_connection=false;Persist Security Info=False;Encrypt=False;" | ||
} | ||
} |
Binary file added
BIN
+139 KB
dotnetproject/dotnetmsAddCustomer/bin/Debug/net6.0/dotnetmsAddCustomer
Binary file not shown.
Oops, something went wrong.