Business object from referenced dll soesn't show in Website Data S

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UGF1bCBT?=

    Business object from referenced dll soesn't show in Website Data S


    Hi
    I have created a collection of business objects in a seperate dll, which I
    have then added to my web project. However it does not show up in list of
    Website Data Sources.

    I need to Data Source to be able to design my Report (MS Reporting)

    I have added a ObjectDataSourc e to a page

    <asp:ObjectData Source ID="ObjectDataS ource3" runat="server"
    SelectMethod="G etWinners"
    TypeName="GolfS tore.Bll.MensSe ction.PinCollec tion">
    <SelectParamete rs>
    <asp:Paramete r Name="EventId" Type="Int32" />
    </SelectParameter s>
    </asp:ObjectDataS ource>

    and calls a stored proc in the database via the GetWinners method - it works
    - I've checked it using the SQL Profiler.

    What do I have to do to make my collection show up in the Website Data
    Source list.

  • Andy B

    #2
    Re: Business object from referenced dll soesn't show in Website Data S

    If your using visual studio 2008 or 2005, you need to uncheck the box in the
    ObjectDataSourc es "Choose your business object" window that says to only
    show data objects. I forget what exactly the text on the checkbox is, but
    you would know it when you saw it. If you uncheck the box, then all objects
    in the project and its dependencies will show up in the drop down. The other
    alternative is to use custom attributes (between [] just above the class).
    www.asp.net/leearn has a good data access tutorial series that explains how
    this works with data sources and how to set it up right. I go back to them a
    lot when I need a little help here and there too.


    "Paul S" <PaulS@discussi ons.microsoft.c omwrote in message
    news:E50665C4-3764-4357-B4EC-27F8A49A7F32@mi crosoft.com...
    >
    Hi
    I have created a collection of business objects in a seperate dll, which I
    have then added to my web project. However it does not show up in list of
    Website Data Sources.
    >
    I need to Data Source to be able to design my Report (MS Reporting)
    >
    I have added a ObjectDataSourc e to a page
    >
    <asp:ObjectData Source ID="ObjectDataS ource3" runat="server"
    SelectMethod="G etWinners"
    TypeName="GolfS tore.Bll.MensSe ction.PinCollec tion">
    <SelectParamete rs>
    <asp:Paramete r Name="EventId" Type="Int32" />
    </SelectParameter s>
    </asp:ObjectDataS ource>
    >
    and calls a stored proc in the database via the GetWinners method - it
    works
    - I've checked it using the SQL Profiler.
    >
    What do I have to do to make my collection show up in the Website Data
    Source list.
    >

    Comment

    • =?Utf-8?B?UGF1bCBT?=

      #3
      Re: Business object from referenced dll soesn't show in Website Da

      Hi Andy

      What you describe is how to configure ObjectdataSourc e and that works fine,
      but my problem is when I open a report in the designer I get a list of
      Website DataSource displayed next to the designer - that where I would like
      to see my BusinessCollect ion. I have seen the tutorials you're talking about
      and taht also works fine for me. The difference is that the code is a part of
      the web project. I have the code in a seperate solution, which i compile into
      a dll. I my web project I reference this dll.

      Thanks
      Paul S

      Comment

      • =?Utf-8?B?Unlhbg==?=

        #4
        Re: Business object from referenced dll soesn't show in Website Da

        Hi Paul

        Did you ever find a solution to this problem, I am having the same issue.

        Thanks

        Ryan

        "Paul S" wrote:
        Hi Andy
        >
        What you describe is how to configure ObjectdataSourc e and that works fine,
        but my problem is when I open a report in the designer I get a list of
        Website DataSource displayed next to the designer - that where I would like
        to see my BusinessCollect ion. I have seen the tutorials you're talking about
        and taht also works fine for me. The difference is that the code is a part of
        the web project. I have the code in a seperate solution, which i compile into
        a dll. I my web project I reference this dll.
        >
        Thanks
        Paul S

        Comment

        Working...