AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter12/Listing12.30.DeclaringAnEntityToBeUsedInEntityDictionary.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_30
{
    using System;
    using Listing12_29;

    public class Order : EntityBase<Guid>
    {
        public Order(Guid key) :
            base(key)
        {
            // ...
        }
    }

    public class OrderFactory : IEntityFactory<Guid, Order>
    {
        public Order CreateNew(Guid key)
        {
            return new Order(key);
        }
    }
}
