Inheritance: TableStorageEntity
コード例 #1
0
 public UserFavoriteEntity(UserFavoriteEntity userFavorite)
     : base(userFavorite.PartitionKey, userFavorite.RowKey)
 {
     UserFavoriteId = userFavorite.UserFavoriteId;
     UserId         = userFavorite.UserId;
     Favorites      = userFavorite.Favorites;
     DateCreated    = userFavorite.DateCreated;
 }
コード例 #2
0
 public UserFavoriteEntity(UserFavoriteEntity userFavorite)
     : base(userFavorite.PartitionKey, userFavorite.RowKey)
 {
     UserFavoriteId = userFavorite.UserFavoriteId;
     UserId = userFavorite.UserId;
     Favorites = userFavorite.Favorites;
     DateCreated = userFavorite.DateCreated;
 }
コード例 #3
0
        public static UserFavoriteEntity CreateReviewEntity(string userId, string favorites, string dateCreated)
        {
            var userfavoriteId     = Guid.NewGuid().ToString();
            var userFavoriteEntity = new UserFavoriteEntity(userfavoriteId);

            userFavoriteEntity.UserId      = userId;
            userFavoriteEntity.Favorites   = favorites;
            userFavoriteEntity.DateCreated = dateCreated;

            return(userFavoriteEntity);
        }
コード例 #4
0
        public static UserFavoriteEntity CreateReviewEntity(string userId, string favorites, string dateCreated)
        {
            var userfavoriteId = Guid.NewGuid().ToString();
            var userFavoriteEntity = new UserFavoriteEntity(userfavoriteId);

            userFavoriteEntity.UserId = userId;
            userFavoriteEntity.Favorites= favorites;
            userFavoriteEntity.DateCreated = dateCreated;

            return userFavoriteEntity;
        }
コード例 #5
0
ファイル: IStore.cs プロジェクト: viren85/moviemirchi
        public static bool UpdateUserFavoriteById(this IStore store, UserFavoriteEntity userFavorite)
        {
            Debug.Assert(userFavorite != null);
            var list = new List<UserFavoriteEntity> { userFavorite };
            var retList = store.UpdateUserFavoritesById(list);

            Debug.Assert(retList.Count == 1);
            return retList[retList.Keys.FirstOrDefault()];
        }