public void AddNote(int applicationId, int applicantId, string noteText, Guid providerUserKey, DateTime dateTime) { Note note = new Note() { ApplicantId = applicantId, ApplicationId = applicationId, DateAdded = dateTime, Text = noteText, UserAdderId = providerUserKey }; context.Notes.InsertOnSubmit(note); context.SubmitChanges(); }
partial void UpdateNote(Note instance);
partial void DeleteNote(Note instance);
partial void InsertNote(Note instance);
private void detach_Notes(Note entity) { this.SendPropertyChanging(); entity.aspnet_User = null; }
private void attach_Notes(Note entity) { this.SendPropertyChanging(); entity.aspnet_User = this; }
private void detach_Notes(Note entity) { this.SendPropertyChanging(); entity.Application = null; }
private void attach_Notes(Note entity) { this.SendPropertyChanging(); entity.Application = this; }