76 liens privés
Part 8 of Razor Pages and Entity Framework tutorial series.
HTMX & ASP.NET Core Samples. Contribute to khalidabuhakmeh/htmx-aspnetcore development by creating an account on GitHub.
string connectionstring = "Server=(localdb)\mssqllocaldb;Database=aspnet-WebApplication1-pouet;Trusted_Connection=True;MultipleActiveResultSets=true";
var sqlOptions = new DbContextOptionsBuilder<ApplicationDbContext>()
.UseSqlServer(connectionstring)
.Options;
using (ApplicationDbContext context = new ApplicationDbContext(sqlOptions))
{
// do sth
}
https://github.com/MapsterMapper/Mapster
https://www.youtube.com/watch?v=UIslFVEHkzA
Localisation
prevoir 2 dbcontext
The default DbContext lifetime is Scoped, and XLocalizer.DB requires a Transient lifetime for the DbContext.
So, it is better to keep localization DbContext separate than the application DbContext.
In other words, use one db for XLocalizer services and another one for your application.
https://github.com/LazZiya/XLocalizer.Samples/blob/master/DbLocalizationSample/DbLocalizationSample
https://docs.ziyad.info/en/Miscellaneous/v1.0/multiple-dbcontexts.md
https://www.codeproject.com/Articles/5275604/ASP-NET-Core-Localization-with-XLocalizer
SEO
url format : site/events/id/slug
https://github.com/ctolkien/Slugify
https://rehansaeed.com/seo-friendly-urls-asp-net-core/
https://zetbit.tech/categories/asp-dot-net-core/3/making-a-pretty-url-in-asp-net-core-with-razor-pages
https://stackoverflow.com/questions/69748993/how-to-show-seo-friendly-url-in-mvc-core-3-1
Opengraph
https://ghorsey.github.io/OpenGraph-Net/documentation/complete-example.html
#redis
https://www.youtube.com/watch?v=jwek4w6als4
https://easycaching.readthedocs.io/en/latest/
mohnish pabrai india portfolio
https://www.youtube.com/watch?v=BVofBEmmjoM
Lorsque le bouclier tarifaire - mis en place par le gouvernement pour protéger les Français contre la hausse des prix de l'énergie - prendra fin, le gouvernement envisage des...