小编Mah*_*hsa的帖子

在运行时以编程方式添加DLL

使用C#,我在运行时创建一个DLL,现在我想在运行时将它添加为我的项目的引用.

我尝试使用该LoadFrom方法,但它不起作用.

我怎样才能做到这一点?

.net c# dll

18
推荐指数
3
解决办法
3万
查看次数

"select count()"非常慢

我有一个包含1,000,000条记录的数据库和一个这样的查询:

select count(code) from table1
Run Code Online (Sandbox Code Playgroud)

它在本地系统上运行良好,但在网络上变得非常慢.其他查询如select * from table快速执行,但select count(code) from table1速度很慢.我无法改变数据库的结构.我的数据库是Foxpro,我使用的是VB.NET.

有解决方案吗?

编辑:我应该写这样的代码吗?

dim ds as new dataset
dim da as new datadapter("select count(*) from table ", connection)
da.fill(ds,"tbl1")
Run Code Online (Sandbox Code Playgroud)

那么我如何select count(code) from table1从数据集中获取?

或者我必须使用LINQ?

编辑2:我的意思是select count(*)和之间的比较select count(code).
解决办法是什么?

vb.net networking foxpro

1
推荐指数
1
解决办法
1029
查看次数

标签 统计

.net ×1

c# ×1

dll ×1

foxpro ×1

networking ×1

vb.net ×1