From 22cd2f984e7a80b271d732877884eeb6d1f3c7a0 Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Sat, 7 Sep 2024 11:44:30 +0300 Subject: [PATCH] ApplicationContext --- Database/ApplicationContext.cs | 8 ++++++++ Database/Models/{Cars.cs => Car.cs} | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Database/ApplicationContext.cs rename Database/Models/{Cars.cs => Car.cs} (95%) diff --git a/Database/ApplicationContext.cs b/Database/ApplicationContext.cs new file mode 100644 index 0000000..5b10ea1 --- /dev/null +++ b/Database/ApplicationContext.cs @@ -0,0 +1,8 @@ +using Microsoft.EntityFrameworkCore; + +namespace Renis.Database; + +public class ApplicationContext : DbContext +{ + +} \ No newline at end of file diff --git a/Database/Models/Cars.cs b/Database/Models/Car.cs similarity index 95% rename from Database/Models/Cars.cs rename to Database/Models/Car.cs index fb12387..ba77df7 100644 --- a/Database/Models/Cars.cs +++ b/Database/Models/Car.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations; namespace Renis.Database.Models; -public class Cars +public class Car { [Key] public long Id { get; set; }