Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-286

Tutorial for .NET 2 does not build. Problem with Tutorial2.WinUI implementation of IBlogView

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • DataAccess 1.9 .2, DataMapper 1.6.2
    • None
    • Testing
    • None

    Description

      For someone else, this may be trivial, but I have tried to figure out the problem to no avail.
      1) Downloaded tutorial for .NET 2
      2) Changed all calls to nUnit to use MbUnit instead.
      3) Attempted to build. Tutorial2.WinUI will not build. Reports:
      Error 1 The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?) in ...\Tutorial2.WinUI\Login.cs 36 16 Tutorial2.WinUI

      The error occurs because IBlogView interface has no property 'User ' - only Author, Blog, BIndingList, but it says by default:
      ...
      #region IBlogView Members

      public User User
      {
      ....

      So, I changed the file login.cs to look like (fragment) and it builds. I am not quite sure how this got checked in with :
      ...
      ...
      #region IBlogView Members

      public Author Author
      {
      get

      { return this.bindingSourceUser.DataSource as Author; }

      set

      { this.bindingSourceUser.SuspendBinding(); this.bindingSourceUser.DataSource = value; this.bindingSourceUser.ResumeBinding(); }

      }
      ...
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            armarshall_apache Allen R. Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: