-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* BaseFilter crash fix * Add Get (KeyProps) method in EntityUtilites * Changed project stucture. Now Dto, Filters, Enums folder move to root. Models folder remove
- Loading branch information
Showing
15 changed files
with
82 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Common.Models.Enums | ||
namespace Common.Enums | ||
{ | ||
/// <summary> | ||
/// Направление сортировки | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System; | ||
|
||
namespace Common.Models.Filters | ||
namespace Common.Filters | ||
{ | ||
/// <summary> | ||
/// Пэйджинг | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
using System; | ||
using System; | ||
using System.Linq.Expressions; | ||
using System.Threading.Tasks; | ||
|
||
namespace Common.Repositories.Contract | ||
{ | ||
/// <summary> | ||
/// Èíòåðôåéñ õðàíàëèùà ðåäàêòèðîâàíèÿ äàííûõ | ||
/// Интерфейс храналища редактирования данных | ||
/// </summary> | ||
/// <typeparam name="TEntity">Ñóùüíîñòü</typeparam> | ||
/// <typeparam name="TEntity">Тип сущьностит</typeparam> | ||
public interface IEditRepository<TEntity> | ||
where TEntity : class | ||
{ | ||
/// <summary> | ||
/// Äîáàâèòü ãðàô ñóùíîñòè | ||
/// Добавить граф сущности | ||
/// </summary> | ||
/// <param name="entity">Íîâàûé ãðàô ñóùíîñòè</param> | ||
/// <param name="entity">Новаый граф сущности</param> | ||
void Add(TEntity entity); | ||
|
||
/// <summary> | ||
/// Ïîìåòèòü ñâîéñòâî ñóùüíîñòè êàê èçìåí¸ííîå | ||
/// Пометить свойство сущьности как изменённое | ||
/// </summary> | ||
/// <param name="entity">Ñóùíîñòü</param> | ||
/// <param name="expressions">Ñâîéñòâà</param> | ||
/// <param name="entity">Сущность</param> | ||
/// <param name="expressions">Свойства</param> | ||
void Modified(TEntity entity, params Expression<Func<TEntity, object>>[] expressions); | ||
|
||
/// <summary> | ||
/// Îáíîâèòü ãðàô ñóùíîñòè | ||
/// Обновить граф сущности | ||
/// </summary> | ||
/// <param name="entity">Îáíîâëÿåìûé ãðàô ñóùíîñòè</param> | ||
/// <param name="entity">Обновляемый граф сущности</param> | ||
void Update(TEntity entity); | ||
|
||
/// <summary> | ||
/// Óäàëèòü ñóùíîñòü | ||
/// Удалить сущность | ||
/// </summary> | ||
/// <param name="entity">Ñóùíîñòü</param> | ||
/// <param name="entity">Сущность</param> | ||
void Remove(TEntity entity); | ||
|
||
/// <summary> | ||
/// Ñîõðàíèòü âñå èçìåíåíèÿ | ||
/// Сохранить все изменения | ||
/// </summary> | ||
/// <returns>Êîëè÷åñòâî èçìåí¸ííûõ ñòðîê â áàçå</returns> | ||
/// <returns>Количество изменённых строк в базе</returns> | ||
int SaveChanges(); | ||
|
||
/// <summary> | ||
/// Àñèíõðîííî ñîõðàíèòü âñå èçìåíåíèÿ | ||
/// Асинхронно сохранить все изменения | ||
/// </summary> | ||
/// <returns>Êîëè÷åñòâî èçìåí¸ííûõ ñòðîê â áàçå</returns> | ||
/// <returns>Количество изменённых строк в базе</returns> | ||
Task<int> SaveChangesAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
using System.Threading.Tasks; | ||
using System.Threading.Tasks; | ||
|
||
namespace Common.Services.Contract | ||
{ | ||
/// <summary> | ||
/// Èíòåðôåéñ ñåðâèñà ðåäàêòèðîâàíèÿ äàííûõ | ||
/// Интерфейс сервиса редактирования данных | ||
/// </summary> | ||
/// <typeparam name="TEntity">Ñóùüíîñòü</typeparam> | ||
/// <typeparam name="TEntity">Тип сущьности</typeparam> | ||
public interface IEditService<in TEntity> | ||
where TEntity : class | ||
{ | ||
/// <summary> | ||
/// Äîáàâèòü ãðàô ñóùíîñòè | ||
/// Добавить граф сущности | ||
/// </summary> | ||
/// <param name="entity">Íîâàûé ãðàô ñóùíîñòè</param> | ||
/// <param name="entity">Новаый граф сущности</param> | ||
void Add(TEntity entity); | ||
|
||
/// <summary> | ||
/// Àñèíõðîííî äîáàâèòü ãðàô ñóùíîñòè | ||
/// Асинхронно добавить граф сущности | ||
/// </summary> | ||
/// <param name="entity">Íîâàûé ãðàô ñóùíîñòè</param> | ||
/// <param name="entity">Новаый граф сущности</param> | ||
/// <returns></returns> | ||
Task AddAsync(TEntity entity); | ||
|
||
/// <summary> | ||
/// Îáíîâèòü ãðàô ñóùíîñòè | ||
/// Обновить граф сущности | ||
/// </summary> | ||
/// <param name="currEntity">Îáíîâëÿåìàÿ ñóùíîñòü</param> | ||
/// <param name="prevEntity">Ñóùíîñòü èç áàçû äàííûõ</param> | ||
/// <param name="currEntity">Обновляемая сущность</param> | ||
/// <param name="prevEntity">Сущность из базы данных</param> | ||
void Update(TEntity currEntity, TEntity prevEntity); | ||
|
||
/// <summary> | ||
/// Àñèíõðîííî îáíîâèòü ãðàô ñóùíîñòè | ||
/// Асинхронно обновить граф сущности | ||
/// </summary> | ||
/// <param name="currEntity">Îáíîâëÿåìàÿ ñóùíîñòü</param> | ||
/// <param name="prevEntity">Ñóùíîñòü èç áàçû äàííûõ</param> | ||
/// <param name="currEntity">Обновляемая сущность</param> | ||
/// <param name="prevEntity">Сущность из базы данных</param> | ||
/// <returns></returns> | ||
Task UpdateAsync(TEntity currEntity, TEntity prevEntity); | ||
|
||
/// <summary> | ||
/// Óäàëèòü ñóùíîñòü | ||
/// Удалить сущность | ||
/// </summary> | ||
/// <param name="entity">Ñóùíîñòü</param> | ||
/// <param name="entity">Сущность</param> | ||
void Remove(TEntity entity); | ||
|
||
/// <summary> | ||
/// Àñèíõðîííî óäàëèòü ñóùíîñòü | ||
/// Асинхронно удалить сущность | ||
/// </summary> | ||
/// <param name="entity">Ñóùíîñòü</param> | ||
/// <param name="entity">Сущность</param> | ||
/// <returns></returns> | ||
Task RemoveAsync(TEntity entity); | ||
|
||
/// <summary> | ||
/// Ñîõðàíèòü âñå èçìåíåíèÿ | ||
/// Сохранить все изменения | ||
/// </summary> | ||
/// <returns>Êîëè÷åñòâî èçìåí¸ííûõ ñòðîê â áàçå</returns> | ||
/// <returns>Количество изменённых строк в базе</returns> | ||
int Commit(); | ||
|
||
/// <summary> | ||
/// Àñèíõðîííî ñîõðàíèòü âñå èçìåíåíèÿ | ||
/// Асинхронно сохранить все изменения | ||
/// </summary> | ||
/// <returns>Êîëè÷åñòâî èçìåí¸ííûõ ñòðîê â áàçå</returns> | ||
/// <returns>Количество изменённых строк в базе</returns> | ||
Task<int> CommitAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters