Changed domains, configured links between VisaApplication and Applicant,created generic repository and repositories for domains
This commit is contained in:
		| @@ -0,0 +1,19 @@ | ||||
| using Domains; | ||||
|  | ||||
| namespace Infrastructure.Database.Generic | ||||
| { | ||||
|     public interface IGenericRepository<T> where T : class, IEntity | ||||
|     { | ||||
|         Task<List<T>> GetAllAsync(CancellationToken cancellationToken); | ||||
|  | ||||
|         Task<T> GetOneAsync(Guid id, CancellationToken cancellationToken); | ||||
|  | ||||
|         Task AddAsync(T entity, CancellationToken cancellationToken); | ||||
|  | ||||
|         Task UpdateAsync(T entity, CancellationToken cancellationToken); | ||||
|  | ||||
|         void Remove(T entity); | ||||
|  | ||||
|         Task SaveAsync(CancellationToken cancellationToken); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user