tar
tar
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
oki
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
olrajt, aber is eher allgemein gemeint. d:\ bliebe halt bestehen, auch wenn du windows mal neu aufsetzen müsstest
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
dann backupst du hofftl. regelmäßig
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
joa du hättest auch einfach den repo ordner auf laufwerk d: schieben können oder dergleichen
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
oje, da hilft nur ein umzug in die schweiz 🤓
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
das ß?
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
versuch mal, VS als admin auszuführen
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
schließe VS, lösch dann bin und obj, öffne das projekt und generiere es neu
32 replies
CC#
Created by Thalnos on 1/27/2025 in #help
✅ Maui HelloWorld App
dateien unter "obj" werden doch erst generiert?
32 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
e.g. via
if (app is IApplicationBuilder appBuilder) {
using var serviceScope = appBuilder.ApplicationServices.CreateScope();
serviceScope.ServiceProvider.GetService<AppDbContext>()?.Database.Migrate();
}
if (app is IApplicationBuilder appBuilder) {
using var serviceScope = appBuilder.ApplicationServices.CreateScope();
serviceScope.ServiceProvider.GetService<AppDbContext>()?.Database.Migrate();
}
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
perhaps they are then auto applied to your db when you have implemented the logic
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
automatically? you need to execute dotnet ef migrations add <name>
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
you need the migrations and api endpoints
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
last but not least there are DTOs which you could/would need to map. but also: you could implement the mappings directly in the corresponding entity or DTO classes.
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
when you apply the users input to create/update an entity, you usually do this directly. ofc, you could add a particular ctor or mapping method within the entity class if it makes things easier for you. but you do not need additional mapper classes.
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
when you add a new entry, you just instanciate it (as usual), add it to your dbcontexts dbset<T> and then save the changes
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
you have your dbcontext where you can access the existing entries via linq
21 replies
CC#
Created by spit on that Thang CHO BOC on 1/27/2025 in #help
Basics (How does an enterprise do it?) DAL Entity mapper
this looks strange to me. wouldn't you check if the corresponding entry exists (e.g. ...FirstOrDefault(x => x.ID == ...) by which you would fetch the existing entry and then just use a mapping method of this entity instead of creating own mapper classes interfaces and more bloat?
21 replies
CC#
Created by Daiko Games on 1/26/2025 in #help
✅ Svg to png conversion
26 replies
CC#
Created by glenncommentator24 on 8/28/2023 in #help
❔ newbie here. how to make combobox display values from 2d array 2nd column, and do nothing if null?
7 replies