add support for Provider Base Controller and also resolve some refactoring issues ...

This commit is contained in:
2025-12-09 03:11:48 +03:30
parent 7e174fc14a
commit cb8e95dcea
5 changed files with 288 additions and 149 deletions
+20 -6
View File
@@ -40,10 +40,12 @@ namespace xTagService.Interfaces
/// </summary>
/// <param name="tag"></param>
/// <param name="forProvidedId"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Attach(
string tag,
TKey forProvidedId
TKey forProvidedId,
string connectionId = null
);
/// <summary>
@@ -51,10 +53,12 @@ namespace xTagService.Interfaces
/// </summary>
/// <param name="tag"></param>
/// <param name="forProvidedId"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Detach(
string tag,
TKey forProvidedId
TKey forProvidedId,
string connectionId = null
);
/// <summary>
@@ -62,10 +66,12 @@ namespace xTagService.Interfaces
/// </summary>
/// <param name="model"></param>
/// <param name="forProvidedId"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Add(
XTagDto model,
TKey forProvidedId
TKey forProvidedId,
string connectionId = null
);
/// <summary>
@@ -177,17 +183,23 @@ namespace xTagService.Interfaces
/// Remove Specified Dto ...
/// </summary>
/// <param name="id"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Remove(
int id
int id,
string connectionId = null
);
/// <summary>
/// Remove All Specified Tags ...
/// </summary>
/// <param name="forProvidedId"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<bool> RemoveTagsFor(TKey forProvidedId);
Task<bool> RemoveTagsFor(
TKey forProvidedId,
string connectionId = null
);
/// <summary>
/// Update Specified Dto ...
@@ -195,11 +207,13 @@ namespace xTagService.Interfaces
/// <param name="id"></param>
/// <param name="model"></param>
/// <param name="forProvidedId"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Update(
int id,
XTagDto model,
TKey forProvidedId
TKey forProvidedId,
string connectionId = null
);
/// <summary>
+24 -24
View File
@@ -60,6 +60,30 @@ namespace xTagService.Interfaces
string connectionId = null
);
/// <summary>
/// Update Specified Dto ...
/// </summary>
/// <param name="id"></param>
/// <param name="model"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Update(
int id,
XTagDto model,
string connectionId = null
);
/// <summary>
/// Remove Specified Dto ...
/// </summary>
/// <param name="id"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Remove(
int id,
string connectionId = null
);
/// <summary>
/// Retrieve Specified Item as Dto ...
/// </summary>
@@ -112,30 +136,6 @@ namespace xTagService.Interfaces
Expression<Func<XTag, bool>> whereClause
);
/// <summary>
/// Remove Specified Dto ...
/// </summary>
/// <param name="id"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Remove(
int id,
string connectionId = null
);
/// <summary>
/// Update Specified Dto ...
/// </summary>
/// <param name="id"></param>
/// <param name="model"></param>
/// <param name="connectionId"></param>
/// <returns></returns>
Task<XTagDto> Update(
int id,
XTagDto model,
string connectionId = null
);
/// <summary>
/// Count Exists Entities ...
/// </summary>