You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 month ago | |
|---|---|---|
| .. | ||
| LINGYUN/Abp/MessageService | 1 year ago | |
| FodyWeavers.xml | 2 years ago | |
| FodyWeavers.xsd | 2 years ago | |
| LINGYUN.Abp.MessageService.EntityFrameworkCore.csproj | 1 month ago | |
| README.EN.md | 1 year ago | |
| README.md | 1 year ago | |
README.md
LINGYUN.Abp.MessageService.EntityFrameworkCore
消息服务的 EntityFrameworkCore 实现模块。
功能特性
- 实现消息服务的数据访问层
- 提供默认仓储实现
- 实现以下实体的仓储:
- ChatGroup - 聊天组
- UserChatGroup - 用户聊天组
- UserChatCard - 用户聊天卡片
- UserChatSetting - 用户聊天设置
- UserChatFriend - 用户聊天好友
依赖模块
- LINGYUN.Abp.MessageService.Domain
AbpEntityFrameworkCoreModule
配置使用
- 首先,需要安装 LINGYUN.Abp.MessageService.EntityFrameworkCore 到你的项目中:
dotnet add package LINGYUN.Abp.MessageService.EntityFrameworkCore
- 添加
AbpMessageServiceEntityFrameworkCoreModule到你的模块的依赖列表:
[DependsOn(typeof(AbpMessageServiceEntityFrameworkCoreModule))]
public class YourModule : AbpModule
{
}
- 在你的 DbContext 中添加消息服务相关的 DbSet:
public class YourDbContext : AbpDbContext<YourDbContext>, IMessageServiceDbContext
{
public DbSet<ChatGroup> ChatGroups { get; set; }
public DbSet<UserChatGroup> UserChatGroups { get; set; }
public DbSet<UserChatCard> UserChatCards { get; set; }
public DbSet<UserChatSetting> UserChatSettings { get; set; }
public DbSet<UserChatFriend> UserChatFriends { get; set; }
public YourDbContext(DbContextOptions<YourDbContext> options)
: base(options)
{
}
}