使用PowerBuilder 11.5实现的最佳版本控制系统是什么?
如果您有关于如何进行分支/主干/标记的示例,那将是非常棒的.我们试图绕过它几次并总是遇到问题,因为我们在多个应用程序中使用PFC/PFE等共享库.
现在我们只使用PBNative,它很糟糕.
我有一个Extension方法,它应该根据Ids的集合过滤一个Queryable对象(IQueryable)....
请注意,IQueryable是通过LinqToSql请求从我的数据库中获取的
public static IQueryable<NewsItemSummary> WithID(this IQueryable<NewsItemSummary> qry, IQueryable<Guid> Ids)
{
return from newsItemSummary in qry
where Ids.Contains(newsItemSummary.ID)
select newsItemSummary;
}
Run Code Online (Sandbox Code Playgroud)
如果从数组或列表创建ID并将其作为可查询列表传入,则它无法正常工作
例如...
GetNewsItemSummary().WithID(ids.AsQueryable<Guid>())
Run Code Online (Sandbox Code Playgroud)
如果Ids是由LinqToSql请求组成的,它就可以工作了!
这是已知问题:http: //connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?反馈ID = 355026
我的Ids集合不能来自LinqToSql请求......
注意,如果我更改函数使它消耗和IList而不是IQueryable ....
public static IQueryable<NewsItemSummary> WithID(this IQueryable<NewsItemSummary> qry, IList<Guid> Ids)
{
return from newsItemSummary in qry
where Ids.Contains(newsItemSummary.ID)
select newsItemSummary;
}
Run Code Online (Sandbox Code Playgroud)
我现在得到以下异常:
Method 'Boolean Contains(System.Guid)' has no supported translation to SQL.
Run Code Online (Sandbox Code Playgroud)
所以......我想做的就是根据Guids列表或数组过滤我的新闻集合.