C#C
C#4y ago
:

✅ Foreign key not working

Hi, I tried making a foreign key in my table, to another table which I made but it does not work as intended.

        [ForeignKey("FileName")]
        public Guid FileName { get; set; }
        public TextFileModel TextFileModel { get; set; }

I tried making a filename field which is a fk to a textfilemodel, but it has instead made two separate fields:
image.png
Was this page helpful?