﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>ulu commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>Do you have to make the ShoppingCart.Lines property settable for some reason?
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment15</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment15</guid><pubDate>Tue, 22 Jun 2010 09:43:24 GMT</pubDate></item><item><title>Ayende Rahien commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>BJT,
  
It comes with Raven, look at the samples/ directory
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment14</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment14</guid><pubDate>Mon, 31 May 2010 21:57:43 GMT</pubDate></item><item><title>BJT commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>Do can I find the code for ported MVC Music Store to Raven?
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment13</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment13</guid><pubDate>Mon, 31 May 2010 20:48:26 GMT</pubDate></item><item><title>Ayende Rahien commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>AntiGameZ,
  
Raven will use the hilo algorithm on the client, but there are additional strategies available for you
  
[www.ravendb.net/.../docs-api-key-generation](http://www.ravendb.net/documentation/docs-api-key-generation)</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment12</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment12</guid><pubDate>Sun, 30 May 2010 17:25:35 GMT</pubDate></item><item><title>AntiGameZ commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>If I want to assign a auto generated id to shop cart, what should I do? How can I get the new shopcart id when migrate?
  
  
Thanks!
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment11</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment11</guid><pubDate>Sun, 30 May 2010 14:48:24 GMT</pubDate></item><item><title>Rik Hemsley commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>As Chaviv pointed out, the implementation of Total may not be correct.
  
  
Just because tests 'would be pretty simple' doesn't mean they're not important.
  
  
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment10</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment10</guid><pubDate>Thu, 27 May 2010 16:47:32 GMT</pubDate></item><item><title>Chaviv commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>The implementation of Total should also account for the quantity of the items.
  
  
public decimal Total
  
{
  
get { return Lines.Sum(t =&gt; t.Price * t.Quantity);
  
}
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment9</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment9</guid><pubDate>Thu, 27 May 2010 11:38:51 GMT</pubDate></item><item><title>Ayende Rahien commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>Rik,
  
There weren't any tests for the original code, so there aren't any for this.
  
They would be pretty simple.
  
Raven contains a testing mode, and you just call it.
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment8</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment8</guid><pubDate>Thu, 27 May 2010 10:40:44 GMT</pubDate></item><item><title>Rik Hemsley commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>I'd be interested to see what your unit tests look like for this code. Please consider sharing them, too.
  
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment7</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment7</guid><pubDate>Thu, 27 May 2010 08:19:35 GMT</pubDate></item><item><title>Ayende Rahien commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>Des
  
Thanks, fixed
  
  
Lee,
  
It would be pretty pointless. There really isn't enough there to _make_ a perf test. Not enough data, not enough use cases.
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment6</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment6</guid><pubDate>Thu, 27 May 2010 02:36:54 GMT</pubDate></item><item><title>gunteman commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>" This isn’t that much of a problem, except that this is the wrong level to deal with persistence issues."
  
  
It's only wrong if it causes problems.
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment5</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment5</guid><pubDate>Wed, 26 May 2010 22:02:15 GMT</pubDate></item><item><title>Lee commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>Can you do a performance analysis of the original mvc music store vs the raven version?
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment4</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment4</guid><pubDate>Wed, 26 May 2010 15:34:44 GMT</pubDate></item><item><title>Des commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>I think he meant this: "The method on the left is the original code, and on the left you can see Raven’s code"
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment3</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment3</guid><pubDate>Wed, 26 May 2010 15:22:10 GMT</pubDate></item><item><title>Ayende Rahien commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>Rob,
  
The image on the right isn't from Raven. Or the port.
  
It is part of the original codebase.
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment2</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment2</guid><pubDate>Wed, 26 May 2010 14:52:32 GMT</pubDate></item><item><title>Rob Ashton commented on Porting the MVC Music Store to Raven: ShoppingCart</title><description>That confused me for a second there, I think you meant "on the right you can see Raven's code" :)
</description><link>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment1</link><guid>http://ayende.com/4524/porting-the-mvc-music-store-to-raven-shoppingcart#comment1</guid><pubDate>Wed, 26 May 2010 14:49:38 GMT</pubDate></item></channel></rss>