How to Convert a SQL Table to C# Class
Run the following SQL query and it will print the SQL table in a formatted C# Class: ———————————————————– DECLARE @tbl sysname = ‘doc360_User_Role’ DECLARE @ClassStr varchar(MAX) = ‘public class ‘ + @tbl + ‘ {‘ SELECT @ClassStr = @ClassStr + ‘ public ‘ + ColumnType + NullableSign + ‘ ‘ + ColumnName + ‘ { … Read more