From 88d7e097491c1e47e14bd4e698c8c67a6a0ba45f Mon Sep 17 00:00:00 2001 From: Richard Beauchamp Date: Tue, 8 Dec 2015 12:33:10 -0800 Subject: [PATCH] Fix sample app database seed --- .../ODataControllers/SwashbuckleODataContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Swashbuckle.OData.Sample/ODataControllers/SwashbuckleODataContext.cs b/Swashbuckle.OData.Sample/ODataControllers/SwashbuckleODataContext.cs index 1c97840..a8fabe0 100644 --- a/Swashbuckle.OData.Sample/ODataControllers/SwashbuckleODataContext.cs +++ b/Swashbuckle.OData.Sample/ODataControllers/SwashbuckleODataContext.cs @@ -38,8 +38,8 @@ protected override void Seed(SwashbuckleODataContext context) context.Customers.Add(customerOne); context.Customers.Add(new Customer { Name = "CustomerTwo" }); - context.Orders.Add(new Order { OrderName = "OrderOne", Customer = customerOne }); - context.Orders.Add(new Order { OrderName = "OrderTwo", Customer = customerOne }); + context.Orders.Add(new Order { OrderId = SequentialGuidGenerator.Generate(SequentialGuidType.SequentialAtEnd), OrderName = "OrderOne", Customer = customerOne }); + context.Orders.Add(new Order { OrderId = SequentialGuidGenerator.Generate(SequentialGuidType.SequentialAtEnd), OrderName = "OrderTwo", Customer = customerOne }); base.Seed(context); }