Пример #1
0
 partial void UpdateContact(Contact instance);
Пример #2
0
 partial void DeleteContact(Contact instance);
Пример #3
0
 partial void InsertContact(Contact instance);
Пример #4
0
		private void detach_Contacts(Contact entity)
		{
			this.SendPropertyChanging();
			entity.User = null;
		}
Пример #5
0
		private void attach_Contacts(Contact entity)
		{
			this.SendPropertyChanging();
			entity.User = this;
		}
Пример #6
0
 /// <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;
 }
Пример #7
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Contact EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContact(Contact contact)
 {
     base.AddObject("Contact", contact);
 }