SqlServer 指定表名生成C# model实体类
`SqlServer 指定表名生成model
在这里插入代码片`declare @TableName sysname = ‘数据库表名’
declare @Result varchar(max) = ’
///
/// ’ + @TableName +
’
///
public class ’ + @TableName + ’
{’
select @Result = @Result + ’
///
/// ’ + CONVERT(NVARCHAR(500), ISNULL(ColName, ‘无
原创
2021-07-18 23:09:20 ·
405 阅读 ·
0 评论