我有一个 EntityDataSource:
<asp:EntityDataSource ID="EntityDataSourcePersoneel"
runat="server"
ConnectionString="name=HotelTestDatabaseEntities"
DefaultContainerName="HotelTestDatabaseEntities"
EntitySetName="Personeels"
Include="Afdeling">
</asp:EntityDataSource>
我动态添加这些 WhereParameters:
EntityDataSourcePersoneel.WhereParameters.Clear();
EntityDataSourcePersoneel.AutoGenerateWhereClause = true;
EntityDataSourcePersoneel.WhereParameters.Add("personeelID", TypeCode.Int32
personeelId.ToString());
如何检查 WhereParameters 是否返回 0 行(无)?
哦,是的,如果我的代码是错误的,请帮助和建议我.. 谢谢!