Загрузка...

playing with dotnet core 44 - dataStorage11 configuring AppDbContext based on MariaDbServerVersion

------------------ Useful Links ------------------------------------ dbContext and how to configure it https://docs.microsoft.com/en-us/ef/core/dbcontext-configuration #dbcontextoptions dbContextOptionsBuilder class https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontextoptionsbuilder?view=efcore-6.0 base keyword C# https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/base this keyword C# https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/this Where UseMySql is defined in pomelo EF Core https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/blob/957d15122023718108783b81e02815b42383a619/src/EFCore.MySql/Extensions/MySqlDbContextOptionsBuilderExtensions.cs ServerVersion abstract class https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/search?q=class+ServerVersion MariaDbServerVersion class https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/blob/ade47ba2358e5a8cfbd147db11beb7d64e15b02d/src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs ServerType.cs (only if you want to do it the traditional way) https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/blob/f4b1ab9497743db5a395a36340515b3d3fc28e3c/src/EFCore.MySql/Infrastructure/ServerType.cs What are Abstract Classes? https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/abstract ------------------ Video Sections -------------------------------- Chapters: 0:00 Introduction 1:49 Add Pomelo.EntityFrameworkCore.MySql using dotnet cli 5:10 Making an AppDbContext class 14:43 Adding an OnConfiguring Override method 16:35 UseMySql for MariaDb server 18:00 UseMySql source code 19:57 recap on this keyword in C# 21:19 ServerVersion abstract Class 27:00 MariaDbServerVersion Class 27:45 making a MariaDbServerVersion Object 29:53 Conclusion ---------------------[Playlists and Relevant Github Repositories]---------------------------------------------- Fluid Mechanics and Git Repos: https://www.youtube.com/playlist?list=PLhPfNw4V4_YSmdAXc6J0XOSQ1b27qsMGt https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube Petroleum Downstream Crash Course Playlist: https://www.youtube.com/playlist?list=PLhPfNw4V4_YQ13CnhacUqEVk-tZlU4ISE OpenFOAM for Windows 10 Beginner Playlist and some Git Repos https://www.youtube.com/playlist?list=PLhPfNw4V4_YRhBU4IqSaToQ8_X543YQsZ https://github.com/theodoreOnzGit/laminar_BL_OpenFOAM OpenFOAM Intermediate Playlist and some Git Repos https://www.youtube.com/playlist?list=PLhPfNw4V4_YSpWX6mSOlwWEOKVa6i_iuE https://github.com/theodoreOnzGit/thin_pipeflow_snappyHexMesh OpenFOAM Heat Transfer Playlist and GitHub Repo https://www.youtube.com/playlist?list=PLhPfNw4V4_YR2Qa3Q9-AzNSF2J9Dc4_qT https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube Radiation Heat Transfer Learning Journal and Git Repos: https://www.youtube.com/watch?v=uUzh9kh-WTo&list=PLhPfNw4V4_YRUUVUydQp-n6U-7uu1kJof https://github.com/theodoreOnzGit/heatTransferTheory_YouTube Convection Boundary Layer and git Repos: https://www.youtube.com/playlist?list=PLhPfNw4V4_YR9pRBpp101Mkuds49vjQ63 https://github.com/theodoreOnzGit/heatTransferTheory_YouTube Turbulence Modelling Playlist https://www.youtube.com/watch?v=F_Rxv9uMM3g&list=PLhPfNw4V4_YSnbYkJIBQ1kRN06Mmxe2Be https://github.com/theodoreOnzGit/turbulenceModelling LabView Frequency Analysis and Fun (playlist and git repo) https://www.youtube.com/playlist?list=PLhPfNw4V4_YQYE7XqTisMBkpm7gqNS_nl https://github.com/theodoreOnzGit/Ted_labview_YouTube Control Systems and Frequency Response https://www.youtube.com/watch?v=qHY6y7JmB2U&list=PLhPfNw4V4_YRUuWnrtClovPKxU_gJOXH- https://github.com/theodoreOnzGit/matlabFrequencyResponse.git OpenFOAM C++ https://github.com/theodoreOnzGit/C-_YouTube_OpenFoam https://www.youtube.com/playlist?list=PLhPfNw4V4_YT9OgqS7ZPlot_Ucxzc6pQJ OpenFOAM Bash https://github.com/theodoreOnzGit/Bash_OpenFOAM_YouTube https://www.youtube.com/playlist?list=PLhPfNw4V4_YT5zjBhfj5Hj4r4D5eXilcU Basic Samba https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuWJLufBUpNplitReZX0fB https://github.com/theodoreOnzGit/sambaVideos Manjaro Tips and Tricks https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuyXBfJxAvzHJTl0UiWx3h lammps and Discrete Element Modelling (DEM) https://www.youtube.com/playlist?list=PLhPfNw4V4_YTdRlnLiu2OUXeTf5ZNVQ9E playing with dotnet core https://www.youtube.com/playlist?list=PLhPfNw4V4_YQSTR8sqz0aRVzWlQBq3QUw dotnet core github repo https://github.com/theodoreOnzGit/dotnetCoreYoutube

Видео playing with dotnet core 44 - dataStorage11 configuring AppDbContext based on MariaDbServerVersion автора Алгоритмы и код новичков
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки