mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-10 11:24:45 +08:00
调整结构
This commit is contained in:
@@ -8,7 +8,7 @@ namespace OpenAuth.Repository
|
||||
{
|
||||
public class RelevanceRepository : BaseRepository<Relevance>, IRelevanceRepository
|
||||
{
|
||||
public void DeleteBy(string key, params Guid[] firstIds)
|
||||
public void DeleteBy(string key, params string[] firstIds)
|
||||
{
|
||||
Delete(u => firstIds.Contains(u.FirstId) && u.Key == key);
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace OpenAuth.Repository
|
||||
/// </summary>
|
||||
/// <param name="key">关联标识</param>
|
||||
/// <param name="idMaps">关联的<firstId, secondId>数组</param>
|
||||
public void DeleteBy(string key, ILookup<Guid, Guid> idMaps)
|
||||
public void DeleteBy(string key, ILookup<string, string> idMaps)
|
||||
{
|
||||
foreach (var sameVals in idMaps)
|
||||
{
|
||||
@@ -34,7 +34,7 @@ namespace OpenAuth.Repository
|
||||
/// </summary>
|
||||
/// <param name="key">关联标识</param>
|
||||
/// <param name="idMaps">关联的<firstId, secondId>数组</param>
|
||||
public void AddRelevance(string key, ILookup<Guid, Guid> idMaps)
|
||||
public void AddRelevance(string key, ILookup<string, string> idMaps)
|
||||
{
|
||||
DeleteBy(key, idMaps);
|
||||
BatchAdd((from sameVals in idMaps
|
||||
|
||||
Reference in New Issue
Block a user