Login Skip Navigation LinksWilsonORMapper > Detail Entity Search
Demo Version Demo Version
Download and try for yourself a fully working demo version, including sample apps and documentation.  The only limitation is that the demo version only works inside the debugger.

PayPal Subscribe
Get It All for $50 USD:
WebPortal, ORMapper,
Source Code, All Updates
PayPal

Wilson ORMapper Examples Wilson ORMapper Examples

Detail Entity

using System;
using System.Collections;

namespace Wilson.ORMapper.Example
{
  publicclass Detail
  {
    private Guid id;
    privatestring info;
    privatestring comment; // Nullable Field
    privateint contactId;
    private Contact contact; // Many-To-One Relationship

    public Guid Id {
      get { returnthis.id; }
    }

    publicstring Info {
      get { returnthis.info; }
      set { this.info = value; }
    }

    publicstring Comment {
      get { returnthis.comment; }
      set { this.comment = value; }
    }

    public Contact Contact {
      get { returnthis.contact; }
      set {
        this.contact = value;
        if (value != null) {
          this.contactId = value.Id;
        }
      }
    }
  
    publicoverridestring ToString() {
      returnthis.info;
    }
  }
}