Login Skip Navigation LinksWilsonORMapper > Contact 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

Contact Entity

using System;
using System.Collections;

namespace Wilson.ORMapper.Example
{
  publicclass Contact
  {
    privateint id; // Database-Generated Key Field
    privatestring name;
    private Address address = new Address(); // Embedded Object Type
    private IList categories; // Many-To-Many Relationship
    private IList details; // One-To-Many Relationship

    publicint Id {
      get { returnthis.id; }
    }

    publicstring Name {
      get { returnthis.name; }
      set { this.name = value; }
    }

    public Address Address {
      get { returnthis.address; }
    }

    public IList Categories {
      get { returnthis.categories; }
    }

    public IList Details {
      get { returnthis.details; }
    }
  
    publicoverridestring ToString() {
      returnthis.name;
    }
  }
}