I am new to SQL Server and trying to figure out if there is a way to get the data type of a column in a table that I have created and entity for.
For example, if I have a SQL Server table 'Employees' with the following column
employeeID int, empName varchar(255), empDept varchar(100)
Is there a way to find the data type for the empName field in C# / Entity Framework?
In the end what I am trying to see is the data type and the column length. So, if I were looping through all of the fields in the table/entity I would like to see: "varchar(255)", "varchar(100)", "int" etc.