Пример #1
0
        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();
        }
Пример #2
0
 partial void DeleteDocument(Document instance);
Пример #3
0
 partial void UpdateDocument(Document instance);
Пример #4
0
 partial void InsertDocument(Document instance);
Пример #5
0
		private void detach_Documents(Document entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_User = null;
		}
Пример #6
0
		private void detach_Documents(Document entity)
		{
			this.SendPropertyChanging();
			entity.Application = null;
		}
Пример #7
0
		private void attach_Documents(Document entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = this;
		}