Selecting distinct records in a declarative linq data source? -
How can I select specific records when using a declarative data source?
& lt; Asp: LinqDataSource ID = "dsColors" runat = "server" ContextTypeName = "Context" OrderBy = "Id, name" Select = 'New (Id, String.Concat (Color + Name as ID + ":" + Name) '' TableName = "color">
Hack it with a group.
asp: LinqDataSource id = "dsColors" runat = "server" contextTypeName = "reference" orderbiz = "id, name" = 'New (id, string.connect (id + ":" + name "as ColorName) tabulation name =" color "groupb =' new (id, name) '& gt; & gt; / ASP: LinqDataSource & gt; ;
Comments
Post a Comment