public UserFavoriteEntity(UserFavoriteEntity userFavorite) : base(userFavorite.PartitionKey, userFavorite.RowKey) { UserFavoriteId = userFavorite.UserFavoriteId; UserId = userFavorite.UserId; Favorites = userFavorite.Favorites; DateCreated = userFavorite.DateCreated; }
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); }
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; }
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()]; }