예제 #1
0
        public ReplyEntity(Reply reply)
        {
            this.PartitionKey = reply.MessageID;
            this.RowKey = string.Format("{0}_{1}",
                Utils.ToAzureStorageSecondBasedString(reply.PostTime.ToUniversalTime()),
                Guid.NewGuid().ToString());

            Content = reply.toJsonString();
        }
        public ReplyNotificationEntifity(string userid, Reply reply)
        {
            this.PartitionKey = userid;
            this.RowKey = string.Format(
                    "{0}_{1}",
                    Utils.ToAzureStorageSecondBasedString(reply.PostTime.ToUniversalTime()),
                    Guid.NewGuid().ToString()
                );

            Content = reply.toJsonString();
        }