Posts

Showing posts from February 15, 2019

Entity Framework DB first - link table joining to two foreign tables

Image
0 Current project uses Entity Framework DB first. I've been given a requirement which involves storing access credentials to third-party sites. The entity structure would look something like this: public class ThirdParty { int Id { get; set; } string Name {get; set;} string RootUrl { get; set;} } public class ThirdPartyCredential { int Id { get; set; } int ThirdPartyId { get; set; } string Username { get; set; } string Password { get; set; } // additional FK's } The "additional" keys is where I'm struggling. We have two other tables called Account and Organisation : each account belongs to one organisation. But the credentials can exist at either the account or organisation level. I need my ThirdPartyCredential table to link to both. I do

Which timer is tick timer in Linux?

Image
0 Which timer interrup trigger cfs? When I run cat /proc/interrupts command, I just seeing local timer interrupt changes in timer peripherals? Which timer is tick timer in linux in x86 architecture? I actually wonder which timer is equavelent of system tick timer in cortex-m in x86? For example, linux uses ttc (trimple timer counter) as tick timer in zynq series soc. But i couldn't understand which timer is used as tick timer in x86. While content of /sys/devices/system/clocksource/clocksource0/available_clocksources file is acpi_pm,hpet,tsc, content of current_clocksource is tsc. But there aren't any of these peripheral's interrupt in output of cat /proc/interrupts linux linux-kernel x86-64 interrupt scheduling