Esempio n. 1
0
        public async Task UpdateEntity(TKey key, Action <TEntity> entityUpdater)
        {
            var entity = GetAttachedEntityToUpdate(key);

            entityUpdater(entity);
            await dmsDbContext.SaveChangesAsync();
        }
Esempio n. 2
0
 public async Task AddProperty(Property property)
 {
     dmsDbContext.Add <Property>(property);
     await dmsDbContext.SaveChangesAsync();
 }
Esempio n. 3
0
 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();
 }
Esempio n. 6
0
 public async Task AddFile(File file)
 {
     dmsDbContext.Add <File>(file);
     await dmsDbContext.SaveChangesAsync();
 }
Esempio n. 7
0
 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();
 }
Esempio n. 10
0
 public async Task AddDocumentType(DocumentType documentType)
 {
     dmsDbContext.Add <DocumentType>(documentType);
     await dmsDbContext.SaveChangesAsync();
 }
Esempio n. 11
0
 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();
 }