linqdatasource

    0热度

    1回答

    我有我的aspx页面的下方查询工作: <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="InventoryDataContext" EntityTypeName="" TableName="V_InventoryForDisplays" Where="ConfiguredC

    0热度

    1回答

    我有以下的LinqDataSource: <asp:LinqDataSource ID = "agreementDs" ContextTypeName = "AdministrationDataContext" TableName = "Agreements" runat = "server" EnableUpdate = "

    0热度

    1回答

    我正在开发一个Sharepoint 2010可视化webpart,我试图在其中使用LinqDataSource来处理GridView中的分页和排序。 我用spmerical制作了我的datacontext和实体对象。现在这是我的代码: 我的标记: <%@ Register TagPrefix="asp" Namespace="System.Web.UI.WebControls" Assembly=

    0热度

    1回答

    <asp:GridView ID="gridInboxMessage" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="LinqDataSource1" OnSelectedIndexChanged="gridInboxMessage_

    0热度

    2回答

    <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="DataClassesDataContext" TableName="PrivateMessages" Where="Sender == @Sender"> <WhereParameters> <asp:Quer

    0热度

    2回答

    问题是 - 新应用程序,客户希望Linq,.NET 4.0,许多数据表是“类别”和“类型” - 简单的数据表通常是两个字段:ID和名称(或说明) 而不是生成一个Web窗体来编辑每个这些数据表 - 不需要一个网页来编辑所有这些数据表,你只需选择你想要的数据表编辑。 (顺便说一句,“模式瘾君子”在哪里,是不是这个模式?这个模式的.NET代码模板在哪里?) 我正在玩Northwinds数据库。我添加了一

    0热度

    1回答

    参数我有2个表: carType: == id CarTypeTitle 和 Items == id ItemTitle CarTypeId1 CarTypeId2 CarTypeId3 ,你可以看到,我做了CarTypeId之间的ID(CarType表)的关系(从项目表),并CarTypeId2(从Items表)到id(CarType表)...之间的relatshion

    2热度

    2回答

    页面中有一个GridView和一个LinqDataSource,并且它们的操作与GridView及其LinqDataSource无关。为什么LinqDataSource的选择方法会在这些按钮的每个回传后调用?这是正常的吗? 这些来自LinqDataSource的不需要的数据库调用不是必需的。 有没有更好的方法?

    2热度

    1回答

    以我的第一个尝试是使用的LinqDataSource的OnSelecting方法,这样我可以指定一个更复杂的查询,我写了这个: protected void CategoriesDataSource_OnSelecting(object sender, LinqDataSourceSelectEventArgs e) { using (DataLayerDataContext

    0热度

    1回答

    Asp.net应用程序在n层体系结构(更好,如果是DDD体系结构)。 在表示层我有一个网格(比如说telerik radgrid或标准gridview),我需要显示产品列表(产品是我的实体)。 谈论Linqdatasource提供商的网格是否合理?我如何在这种情况下使用它?或者我应该写绑定操作“manully”(intercepiting结合事件,并从我的应用层调用我的getproductlist