public void AddDocumentEntry(string directory, string filename, int applicationId, int applicantId, DateTime dateAdded, Guid userId) { Document document = new Document(); document.ApplicantId = applicantId; document.ApplicationId = applicationId; document.DateAdded = dateAdded; document.DocumentName = filename; document.DocumentPath = directory; document.UserAdderId = userId; context.Documents.InsertOnSubmit(document); context.SubmitChanges(); }
partial void DeleteDocument(Document instance);
partial void UpdateDocument(Document instance);
partial void InsertDocument(Document instance);
private void detach_Documents(Document entity) { this.SendPropertyChanging(); entity.aspnet_User = null; }
private void detach_Documents(Document entity) { this.SendPropertyChanging(); entity.Application = null; }
private void attach_Documents(Document entity) { this.SendPropertyChanging(); entity.Applicant = this; }