统一处理多对多表映射

This commit is contained in:
yubaolee
2015-11-30 11:58:18 +08:00
parent 92ead80909
commit 464f04bb32
36 changed files with 968 additions and 3372 deletions

View File

@@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenAuth.Domain.Interface
{
public interface IUserModuleRepository : IRepository<UserModule>
{
void DeleteByUser(params int[] userIds);
void AddUserModule(int userId, params int[] moduleIds);
}
}

View File

@@ -11,12 +11,5 @@ namespace OpenAuth.Domain.Interface
int GetUserCntInOrgs(params int[] orgIds);
IEnumerable<User> LoadInOrgs(int pageindex, int pagesize, params int[] orgIds);
void SetOrg(int userId, params int[] orgIds);
/// <summary>
/// ɾ<><C9BE><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>Ϣ
/// </summary>
void Delete(int id);
}
}

View File

@@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenAuth.Domain.Interface
{
public interface IUserRoleRepository : IRepository<UserRole>
{
void DeleteByUser(params int[] userIds);
void AddUserRole(int userId, params int[] roleIds);
}
}