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(); } }
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; }
private void detach_Contacts(Contact entity) { this.SendPropertyChanging(); entity.Application = null; }
partial void DeleteContact(Contact instance);
partial void UpdateContact(Contact instance);
partial void InsertContact(Contact instance);
private void detach_Contacts(Contact entity) { this.SendPropertyChanging(); entity.ContactType = null; }
private void attach_Contacts(Contact entity) { this.SendPropertyChanging(); entity.ContactType = this; }
private void detach_Contacts(Contact entity) { this.SendPropertyChanging(); entity.aspnet_Membership = null; }
private void attach_Contacts(Contact entity) { this.SendPropertyChanging(); entity.Applicant = this; }