The Individual object resides in ManagementSuite.Data.
See sample
Tables updated by the object are indicated with bold headers below.
The Item and Site_Item rows are inserted automatically by the Individual object.
Item.Title is populated from FirstName and LastName.
Item and
Site_Item
Individual.SiteID
Usr
Individual.IndividualID (Same as ItemID and UID)
Individual.ItemID
Individual.Prefix
Individual.FirstName
Individual.MiddleName
Individual.LastName
Individual.Suffix
Individual.Email1
Individual.BirthDay
Individual.BirthMonth
Individual.BirthYear
Address
Individual.MailingAddressLine1
Individual.MailingAddressLine2
Individual.MailingAddressCity
Individual.MailingAddressState
Individual.MailingAddressZip
Individual.MailingAddressCountry
Individual.PhysicalAddressLine1
Individual.PhysicalAddressLine2
Individual.PhysicalAddressCity
Individual.PhysicalAddressState
Individual.PhysicalAddressZip
Individual.PhysicalAddressCountry
Individual.PhysicalAddressDirections
Individual.PhysicalAddressLatitude
Individual.PhysicalAddressLongitude
Phone
Phone1Formatted
Phone1AreaCode
Phone1Number
Phone1Ext
Phone1Type (1-Home, 2-Office, 3-Fax, 4-Mobile, 5-Pager)
Phone1Label (Custom description of phone usage. ie. Customer Service.)
Phone2Formatted
Phone2AreaCode
Phone2Number
Phone2Ext
Phone2Type
Phone2Label
Phone3Formatted
Phone3AreaCode
Phone3Number
Phone3Ext
Phone3Type
Phone3Label
Phone4Formatted
Phone4AreaCode
Phone4Number
Phone4Ext
Phone4Type
Phone4Label
Phone5Formatted
Phone5AreaCode
Phone5Number
Phone5Ext
Phone5Type
Phone5Label
Logon
Individual.UserName
Individual.Password (write only)
Individual.UserAccess (defaults to 1)
Sample
using ManagementSuite.Data.DataObjects;
public void LoadIndividual()
{
// Load an existing individual
Individual individual = new Individual();
// Load using the UserID or email address and SiteID.
//bool loaded = individual.Load(UserID);
bool loaded = individual.LoadByEmail("[email protected]", SiteID);
if (loaded)
{
string phone1 = individual.Phone1Formatted;
string phone2 = individual.Phone2Formatted;
string mailingAddressLine1 = individual.MailingAddressLine1;
string email = individual.Email1;
int uid = individual.UserID;
// Update
individual.Company = "Acme Industries";
individual.PhysicalAddressLongitude = 38.4567;
individual.Phone1Formatted = "222-333-4444";
individual.Phone1Type = Phone.PhoneTypes.Fax;
individual.Save();
}
// Add new user
individual = new Individual();
individual.AddNew();
individual.FirstName = "Test";
individual.LastName = "User1";
individual.SiteID = SiteID;
individual.Email = "[email protected]";
individual.UserName = "TestUser";
individual.Password = "pass123";
individual.Save();
}