C# 如何更新数据表中的字段
我有一个 .net/ c# 控制台应用程序,其中包含从数据库填充的 DataTable
。
我想对 DataTable
中的字段运行更新以剥离 HTML。我在控制台应用程序中执行此操作的函数称为:StripTagsCharArray
,
其定义为:
static private string StripTagsCharArray(string source)
如何调用它来更新DataTable
中的“描述”字段?
我想看看这是否会提高我的应用程序的性能,因为现在我有一个 SQL UDF 执行 HTML 剥离。
I have a .net/ c# console app with a DataTable
that I populated from a Database.
I want to run an update on a field in the DataTable
to strip the HTML. the function i have in the console app to do this is called: StripTagsCharArray
its defined as:
static private string StripTagsCharArray(string source)
how can i invoke this to update the Description field in my DataTable
?
i want to see if this will improve performance of my application as now i have a SQL UDF doing the HTML stripping.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
万一有人需要这个:
in case some one needs this: