Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		
							
								
								
									
										25
									
								
								Infrastructure/Database/Generic/IGenericWriter.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								Infrastructure/Database/Generic/IGenericWriter.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| using ApplicationLayer.InfrastructureServicesInterfaces; | ||||
| using Domains; | ||||
|  | ||||
| namespace Infrastructure.Database.Generic; | ||||
|  | ||||
| /// Writes data to data storage | ||||
| /// <remarks><see cref="IUnitOfWork"/> should be used to save changes</remarks> | ||||
| public interface IGenericWriter | ||||
| { | ||||
|     /// Add entity to data storage | ||||
|     /// <param name="entity">Entity to add</param> | ||||
|     /// <param name="cancellationToken">Cancellation Token</param> | ||||
|     /// <typeparam name="T">Entity type</typeparam> | ||||
|     Task AddAsync<T>(T entity, CancellationToken cancellationToken) where T : class, IEntity; | ||||
|  | ||||
|     /// Update entity in data storage | ||||
|     /// <param name="entity">Entity to update</param> | ||||
|     /// <typeparam name="T">Entity type</typeparam> | ||||
|     void Update<T>(T entity) where T : class, IEntity; | ||||
|  | ||||
|     /// Remove entity from data storage | ||||
|     /// <param name="entity">Entity to remove</param> | ||||
|     /// <typeparam name="T">Entity type</typeparam> | ||||
|     void Remove<T>(T entity) where T : class, IEntity; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user