I added a column (bit \ bool) of IsController to one of my tables
ALTER TABLE P_USER ADD IsController bit NOT NULL DEFAULT 0
Updated edmx and added IsController to the MY_USER object, and then changed its name to IsControllerX and matched it to IsController from the table.
And install this inside the solution.domain.business cs file:
public virtual bool IsControllerX { get; set; }
In case of debugging, I have an error:
An error occurred while executing the command definition. See internal exception for details. InnerException: Invalid column name 'IsController'.
Error with IsController , not with IsControllerX ! This is the name of the column I'm mapped to - the name of the column inside the database!
Can someone explain why I am getting this error?
source share