예제 #1
0
        public async Task UpdateEntity(TKey key, Action <TEntity> entityUpdater)
        {
            var entity = GetAttachedEntityToUpdate(key);

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