chat room persistent db model
This commit is contained in:
parent
df9ff16c5c
commit
f356fd4ea8
7 changed files with 378 additions and 21 deletions
|
|
@ -25,7 +25,8 @@ namespace Yavsc.Controllers
|
|||
public IEnumerable<ChatUserInfo> GetUserList()
|
||||
{
|
||||
List<ChatUserInfo> result = new List<ChatUserInfo>();
|
||||
var cxsQuery = dbContext.ChatConnection?.Include(c=>c.Owner).GroupBy( c => c.ApplicationUserId );
|
||||
var cxsQuery = dbContext.ChatConnection?.Include(c=>c.Owner)
|
||||
.Where(cx => cx.Connected).GroupBy( c => c.ApplicationUserId );
|
||||
|
||||
// List<ChatUserInfo> result = new List<ChatUserInfo>();
|
||||
if (cxsQuery!=null)
|
||||
|
|
@ -48,5 +49,7 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue