public async Task UpdateEntity(TKey key, Action <TEntity> entityUpdater) { var entity = GetAttachedEntityToUpdate(key); entityUpdater(entity); await dmsDbContext.SaveChangesAsync(); }
public async Task AddProperty(Property property) { dmsDbContext.Add <Property>(property); await dmsDbContext.SaveChangesAsync(); }
public async Task AddContainer(PhysicalDocumentContainer container) { dbContext.Add(container); await dbContext.SaveChangesAsync(); }
public async Task AddPropertyField(PropertyField propertyField) { dmsDbContext.Add <PropertyField>(propertyField); await dmsDbContext.SaveChangesAsync(); }
public async Task AddPhysicalDocument(PhysicalDocument physicalDocument) { dbContext.Add(physicalDocument); await dbContext.SaveChangesAsync(); }
public async Task AddFile(File file) { dmsDbContext.Add <File>(file); await dmsDbContext.SaveChangesAsync(); }
public async Task AddCategory(Category category) { dmsDbContext.Add <Category>(category); await dmsDbContext.SaveChangesAsync(); }
public async Task AddCategoryDocument(CategoryDocument categoryDocument) { dmsDbContext.Add <CategoryDocument>(categoryDocument); await dmsDbContext.SaveChangesAsync(); }
public async Task CommitAsync() { await _context.SaveChangesAsync(); }
public async Task AddDocumentType(DocumentType documentType) { dmsDbContext.Add <DocumentType>(documentType); await dmsDbContext.SaveChangesAsync(); }
public async Task AddDocument(Document document) { dmsDbContext.Add <Document>(document); await dmsDbContext.SaveChangesAsync(); }
public async Task AddPropertyValue(PropertyValue propertyValue) { dmsDbContext.Add <PropertyValue>(propertyValue); await dmsDbContext.SaveChangesAsync(); }