diff --git a/tp1/DbContextLib/DbContextLib.csproj b/tp1/DbContextLib/DbContextLib.csproj
new file mode 100644
index 0000000..bb23fb7
--- /dev/null
+++ b/tp1/DbContextLib/DbContextLib.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/tp1/DbContextLib/LibraryContext.cs b/tp1/DbContextLib/LibraryContext.cs
new file mode 100644
index 0000000..d4b1ff8
--- /dev/null
+++ b/tp1/DbContextLib/LibraryContext.cs
@@ -0,0 +1,18 @@
+using Microsoft.EntityFrameworkCore;
+using Entities;
+
+namespace DbContextLib
+{
+ public class LibraryContext: DbContext
+ {
+ public DbSet BookSet{ get; set; }
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+ {
+ optionsBuilder.UseSqlite($"Data Source=ex_03_02_CodeFirst_data_annotations.Books.db");
+ }
+ }
+}
+
+
+
diff --git a/tp1/Entities/BookEntity.cs b/tp1/Entities/BookEntity.cs
new file mode 100644
index 0000000..50e79ff
--- /dev/null
+++ b/tp1/Entities/BookEntity.cs
@@ -0,0 +1,12 @@
+using System.Reflection;
+
+namespace Entities
+{
+ public class BookEntity
+ {
+ public int ID {get; set;}
+ public string Title { get; set; }
+ public string Author { get; set; }
+ public string Isbn { get; set; }
+ }
+}
diff --git a/tp1/Entities/Entities.csproj b/tp1/Entities/Entities.csproj
new file mode 100644
index 0000000..bb23fb7
--- /dev/null
+++ b/tp1/Entities/Entities.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/tp1/StubbedContextLib/StubbedContext.cs b/tp1/StubbedContextLib/StubbedContext.cs
new file mode 100644
index 0000000..65e6ff1
--- /dev/null
+++ b/tp1/StubbedContextLib/StubbedContext.cs
@@ -0,0 +1,7 @@
+namespace StubbedContextLib
+{
+ public class StubbedContext
+ {
+
+ }
+}
diff --git a/tp1/StubbedContextLib/StubbedContextLib.csproj b/tp1/StubbedContextLib/StubbedContextLib.csproj
new file mode 100644
index 0000000..cf7b1e0
--- /dev/null
+++ b/tp1/StubbedContextLib/StubbedContextLib.csproj
@@ -0,0 +1,14 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
+
diff --git a/tp1/TestStubEF/Class1.cs b/tp1/TestStubEF/Class1.cs
new file mode 100644
index 0000000..7e68d8e
--- /dev/null
+++ b/tp1/TestStubEF/Class1.cs
@@ -0,0 +1,7 @@
+namespace TestStubEF
+{
+ public class Class1
+ {
+
+ }
+}
diff --git a/tp1/TestStubEF/TestStubEF.csproj b/tp1/TestStubEF/TestStubEF.csproj
new file mode 100644
index 0000000..bb23fb7
--- /dev/null
+++ b/tp1/TestStubEF/TestStubEF.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/tp1/tp1.sln b/tp1/tp1.sln
new file mode 100644
index 0000000..4524639
--- /dev/null
+++ b/tp1/tp1.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.8.34330.188
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tp1", "tp1\tp1.csproj", "{2097BC86-5063-42A3-83E2-1004732AC629}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {2097BC86-5063-42A3-83E2-1004732AC629}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2097BC86-5063-42A3-83E2-1004732AC629}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2097BC86-5063-42A3-83E2-1004732AC629}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2097BC86-5063-42A3-83E2-1004732AC629}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {B2A30B02-81D8-43E5-9D54-25E8F801F280}
+ EndGlobalSection
+EndGlobal
diff --git a/tp1/tp1/Program.cs b/tp1/tp1/Program.cs
new file mode 100644
index 0000000..83fa4f4
--- /dev/null
+++ b/tp1/tp1/Program.cs
@@ -0,0 +1,2 @@
+// See https://aka.ms/new-console-template for more information
+Console.WriteLine("Hello, World!");
diff --git a/tp1/tp1/TestStubEF.csproj b/tp1/tp1/TestStubEF.csproj
new file mode 100644
index 0000000..c25f2d9
--- /dev/null
+++ b/tp1/tp1/TestStubEF.csproj
@@ -0,0 +1,28 @@
+
+
+
+ Exe
+ net8.0
+ enable
+ enable
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+
+
+
+