chat room persistent db model

This commit is contained in:
Paul Schneider 2019-05-08 03:13:07 +01:00
commit f356fd4ea8
7 changed files with 378 additions and 21 deletions

View file

@ -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;
}
}
}