to connect to an already existing database. The table that I am using first is called
. I also have a
as my domain model. This is how I mapped my class and table:
My Bank table:
My Bank class looks like this:
I am having issues when I want to return all the banks. The SQL statement returned from:
This is not going to work because my table does not have the Id, Name and IsActive columns. How would I fix this and would EF map BankId to Id and BankName to Name automatically?