小编Shi*_*ipu的帖子

如何在 Visual Studio Web 安装程序中添加自述文件?

我们如何在使用visual studio 创建的Web 安装程序中添加自述文件。安装产品后,自述文件的路径应显示在控制面板中。

c# asp.net installation

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

如何使用msi安装程序安装同一应用程序的多个实例

我正在使用visual studio设置项目来创建我的msi安装程序.我的要求是使用相同的安装程序创建应用程序的多个实例,而不更改版本号/产品代码.

没有使用Wix/Installshield有没有办法做到这一点.

c# deployment windows-installer

3
推荐指数
2
解决办法
4534
查看次数

查询结果不能多​​次枚举

请考虑以下方法.我被问到异常,而转发器绑定.

Bindrepeater:

private void BindRepeater()
{
    var idx = ListingPager.CurrentIndex;
    int itemCount;
    var keyword = Keywords.Text.Trim();
    var location = Area.Text.Trim();
    var list = _listing.GetBusinessListings(location, keyword, idx, out itemCount);
    ListingPager.ItemCount = itemCount;
    BusinessListingsRepeater.DataSource = list.ToList(); // exception here
    BusinessListingsRepeater.DataBind();
}
Run Code Online (Sandbox Code Playgroud)

GetBusinessListings:

public IEnumerable<Listing> GetBusinessListings(string location, string keyword, int index, out int itemcount)
{
    var skip = GetItemsToSkip(index);
    var result = CompiledQueries.GetActiveListings(Context);
    if (!string.IsNullOrEmpty(location))
    {
      result= result.Where(c => c.Address.Contains(location));
    }
    if (!string.IsNullOrEmpty(keyword))
    {
        result = result.Where(c => c.RelatedKeywords.Contains(keyword) || c.Description.Contains(keyword));
    }
    var …
Run Code Online (Sandbox Code Playgroud)

c# exception linq-to-sql

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