User Tools

Site Tools


sqlite_nhibernate_vscode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sqlite_nhibernate_vscode [2021/08/30 13:12]
sausage created
sqlite_nhibernate_vscode [2021/09/01 09:47]
sausage removed
Line 1: Line 1:
 ====== Creating a .NET Core application with Entity Framework and SQLite in VSCode ====== ====== Creating a .NET Core application with Entity Framework and SQLite in VSCode ======
  
-{{:​sqlite:​sqlite-nhibernate-vscode.png?​direct&​400 |}}+{{:​sqlite:​sqlite-ef-vscode.png?​direct&​400 |}}
  
 One of the nice things about SQLite databases is that they are so much easier than other databases to spin up and work with. That's opposed to something like SQL Server and it's heavy overhead with a SQL Server installation. ​ One of the nice things about SQLite databases is that they are so much easier than other databases to spin up and work with. That's opposed to something like SQL Server and it's heavy overhead with a SQL Server installation. ​
  
-Also that SQLite databases can sit with the application itself for simpler web architecture ​deployments. There is something simply refreshing about that.+Also that SQLite databases can sit comfortably ​with the application itself for deployments ​of simple web architectures. There is something simply refreshing about that.
  
 ===== Setting up a basic MVC project ===== ===== Setting up a basic MVC project =====
Line 86: Line 86:
 ===== The DbContext ===== ===== The DbContext =====
  
-A class that inherits DbContext can be used as an Entity Framework session to save or query data. WE can create instances of our ''​GuidInfo''​ class and save then to our SQLite database. The database doesn'​t exist yet. But it will soon.+A class that inherits DbContext can be used as an Entity Framework session to save or query data. We can create instances of our ''​GuidInfo''​ class and save then to our SQLite database. The database doesn'​t exist yet. But it will soon.
  
 Create the following minimal ''​SqliteDbContext.cs''​ class in the project that inherits the DbContext: Create the following minimal ''​SqliteDbContext.cs''​ class in the project that inherits the DbContext: