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

Address Entity

using System;
using System.Collections;

namespace Wilson.ORMapper.Example
{
  publicclass Address
  {
    privatestring line; // Nullable Field
    privatestring city; // Nullable Field
    privatestring state; // Nullable Field
    privatestring zip; // Nullable Field

    publicstring Line {
      get { returnthis.line; }
      set { this.line = value; }
    }

    publicstring City {
      get { returnthis.city; }
      set { this.city = value; }
    }

    publicstring State {
      get { returnthis.state; }
      set { this.state = value; }
    }

    publicstring Zip {
      get { returnthis.zip; }
      set { this.zip = value; }
    }
  
    publicoverridestring ToString() {
      returnstring.Format("{0}{1}{2}{3}{4} {5}", this.line, (this.line != null && this.line.Length > 0 ? "; " : ""),
        this.city, (this.city != null && this.city.Length > 0 ? ", " : ""), this.state, this.zip);
    }
  }
}