partial void UpdateContact(Contact instance);
partial void DeleteContact(Contact instance);
partial void InsertContact(Contact instance);
private void detach_Contacts(Contact entity) { this.SendPropertyChanging(); entity.User = null; }
private void attach_Contacts(Contact entity) { this.SendPropertyChanging(); entity.User = this; }
/// <summary> /// Create a new Contact object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> /// <param name="zip">Initial value of the Zip property.</param> /// <param name="country">Initial value of the Country property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="address2">Initial value of the Address2 property.</param> /// <param name="phone">Initial value of the Phone property.</param> /// <param name="email">Initial value of the Email property.</param> public static Contact CreateContact(global::System.Guid id, global::System.Guid userId, global::System.String firstName, global::System.String lastName, global::System.String zip, global::System.String country, global::System.String address, global::System.String address2, global::System.String phone, global::System.String email) { Contact contact = new Contact(); contact.Id = id; contact.UserId = userId; contact.FirstName = firstName; contact.LastName = lastName; contact.Zip = zip; contact.Country = country; contact.Address = address; contact.Address2 = address2; contact.Phone = phone; contact.Email = email; return contact; }
/// <summary> /// Deprecated Method for adding a new object to the Contact EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContact(Contact contact) { base.AddObject("Contact", contact); }