From 9b34abfa29a9efe77ce6c7aaf73608905aed9ab0 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Tue, 19 Nov 2013 14:19:41 +1100 Subject: [PATCH] Bug Fix: Default DeviceProfile DistributionType The DistributionType is required but was not specified (null) in the Database Seed (as a result of the move to an enum). --- Disco.Data/Repository/DiscoDataSeeder.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Disco.Data/Repository/DiscoDataSeeder.cs b/Disco.Data/Repository/DiscoDataSeeder.cs index 54b3218b..b5c7070d 100644 --- a/Disco.Data/Repository/DiscoDataSeeder.cs +++ b/Disco.Data/Repository/DiscoDataSeeder.cs @@ -60,7 +60,15 @@ namespace Disco.Data.Repository { if (Database.DeviceProfiles.Count() == 0) { - Database.DeviceProfiles.Add(new DeviceProfile { ShortName = "WS", Name = "Default", Description = "Initial Default Workstation Profile", ComputerNameTemplate = "DeviceProfile.ShortName + ''-'' + SerialNumber" }); + Database.DeviceProfiles.Add( + new DeviceProfile + { + ShortName = "WS", + Name = "Default", + Description = "Initial Default Workstation Profile", + ComputerNameTemplate = "DeviceProfile.ShortName + ''-'' + SerialNumber", + DistributionType = DeviceProfile.DistributionTypes.OneToMany + }); } } public static void SeedJobSubTypes(this DiscoDataContext Database)