Skip to content

Instantly share code, notes, and snippets.

@johnnonolan
Created July 24, 2012 10:41
Show Gist options
  • Save johnnonolan/3169335 to your computer and use it in GitHub Desktop.
Save johnnonolan/3169335 to your computer and use it in GitHub Desktop.
autoprops
public class Patient
{
public virtual string PatientNo { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual string TCId { get; set; }
public virtual string FatherName { get; set; }
public virtual string MotherName { get; set; }
public virtual string Sex { get; set; }
public virtual IList Children { get; set;}
// snip
public virtual string HomeInvoiceAddress
{
get
{
return FirstName + " " + LastName + "\n"
+ HomeDistrict + " " + HomeAddress + "\n"
+ HomeTown + " " + HomePostCode + " " + HomeCity;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment