Step 1:- Copy this code and past in your sql editer
declare @TableName sysname
= '@TableName'
declare @result varchar(max) = 'public class ' +
@TableName + '
{'
select @result =
@result + '
public ' + ColumnType + ' ' + ColumnName + ' { get; set; }
'
from
(
select
replace(col.name, ' ', '_') ColumnName,
column_id,
...