none
EntityDataSource - Problem with GroupBy RRS feed

  • Question

  • Am trying to do a Grouping based on the date part of a DateTime property.

    <asp:EntityDataSource ID="edsTickets" runat="server" ContextTypeName="SD_DB.SD_Entities"EnableFlattening="False" EntitySetName="Tickets" Select="TicketRaisedOn, Count(TicketRaisedOn) as totalTickets" GroupBy="Day(it.RaisedOn) as TicketRaisedOn" OrderBy="TicketRaisedOn">
    </asp:EntityDataSource>
    

    Am getting the following error:

    'TicketRaisedOn' could not be resolved in the current scope or context.

    Need help. What am I doing wrong?

    Regards

    Benjamin


    Prabhu Benjamin V
    Wednesday, January 19, 2011 5:03 PM

All replies