【发布时间】:2020-06-23 09:27:42
【问题描述】:
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ILBO_ST41", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data .ParameterDirection.Input, 0, 0, "ILBO_ST41", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
它是我的 .Designer.cs 文件的一部分,它与插入查询有关。
我想将 System.Data.SqlDbType.NVarChar, 10 更改为 50。
NVarChar 的默认值是 10 吗?
我可以更改 Form.cs 文件中的值吗?不更改直接文件怎么办?
【问题讨论】:
-
我希望您能够在设计器中解决此问题。找到该 SQL 参数在设计器中定义的位置,并调整属性
-
虽然您可以编辑.Designer.cs,但您不应该这样做。您应该能够在 Property-Toolbox 中找到它。也许您需要扩展一个条目。
-
我在 .xsd 文件的属性中找不到 SqlDbType。我怎样才能找到?
标签: c# sql-server-2005 dataset tableadapter