コード例 #1
0
            internal static UserData FetchByConfessGuid(string confessGuid)
            {
                //fetch confess by guid first
                string confessOwnerID = ConfessClass.FetchOneConfessByGuid(confessGuid).Owner_Guid;

                return(UserClass.FetchUserByID(confessOwnerID));
            }
コード例 #2
0
            public static List <CommentLoader> FetchComment(string guid, string key)
            {
                List <Comment> data = contextLite.Comment.Find(d => d.Confess_Guid == guid).ToList();

                //FilterDefinitionBuilder<Comment> builder = Builders<Comment>.Filter;
                //FilterDefinition<Comment> idFilter = builder.Eq(e => e.Confess_Guid, guid);
                //IFindFluent<Comment, Comment> cursor = context.Comment.Find(idFilter);
                // Find All

                //report seen
                Confess confess = ConfessClass.FetchOneConfessByGuid(guid);

                if (confess.Owner_Guid != key)
                {
                    SeenClass.Post(guid, key);
                }
                return(GetLoader(data, key));
            }