当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - How to create readonly SQL Server table column

问题描述:

I'm using Microsoft.SqlServer.Management.Smo.column for creating a SQL server table.

This is the MSDN page for the column class https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.column.aspx.

System.data.dtatable.column has a property ReadOnly. But I'm unable to find a way to make Microsoft.SqlServer.Management.Smo.column read only.

I can't use SQL scripts in this project.

Is there a workaround to achieve this?

分享给朋友:
您可能感兴趣的文章:
随机阅读: