My Tables
CREATE SEQUENCE SeqA START WITH 1 INCREMENT BY 1;
CREATE TABLE TblA (
CompanyID BIGINT NOT NULL,
ID BIGINT DEFAULT (NEXT VALUE FOR SeqA),
..
PRIMARY KEY (CompanyID, ID));
And
CREATE TABLE TblB (
MyID BIGINT PRIMARY KEY IDENTITY(1, 1),
..
CompanyID BIGINT NOT NULL, -- These are foreign key references to TblA
ID BIGINT NOT NULL
);
Question 1: How can I setup foreign key to reference TblA from TblB?
Question 2: When using EF Core 3.1, how can I setup navigation property for CompanyID and ID in TblB to references TblA?