public static void InsertContact(MoqContainer mockContainer, Contact mobile)
        {
            using (ILifetimeScope scope = mockContainer.StartNewLifetime())
            {
                GranaDataDataContext granaDataContext = ServiceModule.ResolveReference<GranaDataDataContext>(scope);

                granaDataContext.Contacts.InsertOnSubmit(mobile);
                granaDataContext.SubmitChanges();

            }
        }
Esempio n. 2
0
        public static Contact GetMobile(int applicationId, int applicantId, string mobile)
        {
            Contact contact = new Contact()
                                  {
                                      ContactDetail =mobile,
                                      ContactTypeId = (int)ContactsOfType.MobilePhone,
                                      DateAdded = DateTime.Now,
                                      UserAdderId = Guid.Parse("D867862C-462B-4262-A3A1-0A7B8DB2D5D1"),
                                      ApplicantId = applicantId,
                                      ApplicationId = applicationId

                                  };

            return contact;
        }
Esempio n. 3
0
		private void detach_Contacts(Contact entity)
		{
			this.SendPropertyChanging();
			entity.Application = null;
		}
Esempio n. 4
0
 partial void DeleteContact(Contact instance);
Esempio n. 5
0
 partial void UpdateContact(Contact instance);
Esempio n. 6
0
 partial void InsertContact(Contact instance);
Esempio n. 7
0
		private void detach_Contacts(Contact entity)
		{
			this.SendPropertyChanging();
			entity.ContactType = null;
		}
Esempio n. 8
0
		private void attach_Contacts(Contact entity)
		{
			this.SendPropertyChanging();
			entity.ContactType = this;
		}
Esempio n. 9
0
		private void detach_Contacts(Contact entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Membership = null;
		}
Esempio n. 10
0
		private void attach_Contacts(Contact entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = this;
		}