var tzCollection = TimeZoneInfo.GetSystemTimeZones();
var timeZoneTypes = new List<TimeZoneType>();
foreach (var timeZoneInfo in tzCollection)
{
var timeZoneType = new TimeZoneType
{
TimeZoneInfoId = timeZoneInfo.Id,
DaylightName = timeZoneInfo.DaylightName,
DisplayName = timeZoneInfo.DisplayName,
StandardName = timeZoneInfo.StandardName,
SupportsDaylightSavingTime = timeZoneInfo.SupportsDaylightSavingTime,
Ticks = timeZoneInfo.BaseUtcOffset.Ticks
};
timeZoneTypes.Add(timeZoneType);
}
foreach (var timeZoneType in timeZoneTypes)
{
db.TimeZoneTypes.Add(timeZoneType);
db.Commit();
}
30 Temmuz 2018 Pazartesi
Kaydol:
Kayıtlar (Atom)
.net 6 mapget kullanımı
app.UseEndpoints(endpoints => { endpoints.MapGet("/", async context => { var response = JsonConvert.Seriali...
-
Komut ekranına aşagıdaki komutları yazarak windows service işlemlerini gerçekleştirebiliriz. Not : Komut ekranı (Başlat -> Çalıştır -&g...
-
IIS üzerinde angular-site.com site açılır. Add Aplication'dan aynı dizin içine "Api" klasörü seçilir. Buraya .Net Core Uygulam...
-
https://github.com/openiddict/openiddict-core OpenIddict nedir? OpenIddict herhangi bir ASP.NET Core 1.x veya 2.x uygulamasında OpenID ...