private ContactDTO Map(tblContact tbl) { var dto = new ContactDTO { MasterId = tbl.id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Firstname = tbl.Firstname, Lastname = tbl.Lastname, BusinessPhone = tbl.BusinessPhone, Fax = tbl.Fax, MobilePhone = tbl.MobilePhone, PhysicalAddress = tbl.PhysicalAddress, PostalAddress = tbl.PostalAddress, SpouseName = tbl.SpouseName, Email = tbl.Email, Company = tbl.Company, JobTitle = tbl.JobTitle, HomeTown = tbl.HomeTown, HomePhone = tbl.HomePhone, WorkExtPhone = tbl.WorkExtPhone, ChildrenNames = tbl.ChildrenNames, City = tbl.City, ContactTypeMasterId = tbl.ContactType ?? Guid.Empty, ContactOwnerMasterId = tbl.CostCenterId, MaritalStatusMasterId = tbl.MaritalStatusId ?? 0, ContactClassificationId = tbl.ContactClassification ?? 0, ContactOwnerType = tbl.ContactOwner, DateOfBirth = tbl.DateOfBirth }; return dto; }
/// <summary> /// Deprecated Method for adding a new object to the tblContact EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblContact(tblContact tblContact) { base.AddObject("tblContact", tblContact); }
/// <summary> /// Create a new tblContact object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="costCenterId">Initial value of the CostCenterId property.</param> /// <param name="contactOwner">Initial value of the ContactOwner property.</param> /// <param name="iM_DateCreated">Initial value of the IM_DateCreated property.</param> /// <param name="iM_DateLastUpdated">Initial value of the IM_DateLastUpdated property.</param> /// <param name="iM_Status">Initial value of the IM_Status property.</param> public static tblContact CreatetblContact(global::System.Guid id, global::System.Guid costCenterId, global::System.Int32 contactOwner, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblContact tblContact = new tblContact(); tblContact.id = id; tblContact.CostCenterId = costCenterId; tblContact.ContactOwner = contactOwner; tblContact.IM_DateCreated = iM_DateCreated; tblContact.IM_DateLastUpdated = iM_DateLastUpdated; tblContact.IM_Status = iM_Status; return tblContact; }