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:
Yorumlar (Atom)
.net 6 mapget kullanımı
app.UseEndpoints(endpoints => { endpoints.MapGet("/", async context => { var response = JsonConvert.Seriali...
-
var dataProperties = Object.getOwnPropertyNames(responseStart.data); for(let i=0;i<datapProperties.length;i++){ localStorage.setItem(pr...
-
Komut ekranına aşagıdaki komutları yazarak windows service işlemlerini gerçekleştirebiliriz. Not : Komut ekranı (Başlat -> Çalıştır -...
-
XAMPP Apache MySQL PHP 5 PHP 4 1.8.3 2.4.9 5.6.16 5.5.11 1.8.2 2.4.9 5.5.36 5.4.27 1.8.1 2.4.3 5.5.27 5.4.7 1...