Skip to content

Commit 46d32ef

Browse files
committed
Added nullable bools on category and content entities
1 parent ad6317f commit 46d32ef

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

NetoDotNET/Entities/Category/Category.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@ namespace NetoDotNET.Entities
88
{
99
public class Category
1010
{
11-
public string ID { get; set; }
12-
1311
public int CategoryID { get; set; }
1412

1513
public string CategoryName { get; set; }
1614

1715
public string ParentCategoryID { get; set; }
1816

19-
public bool Active { get; set; }
17+
public bool? Active { get; set; }
2018

2119
public string SortOrder { get; set; }
22-
public bool OnSiteMap { get; set; }
20+
public bool? OnSiteMap { get; set; }
2321

24-
public bool OnMenu { get; set; }
22+
public bool? OnMenu { get; set; }
2523

26-
public bool AllowReviews { get; set; }
24+
public bool? AllowReviews { get; set; }
2725

2826
public string RequireLogin { get; set; }
2927

NetoDotNET/Entities/Content/Content.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public class Content
1919

2020
public string ParentContentID { get; set; }
2121

22-
public bool Active { get; set; }
22+
public bool? Active { get; set; }
2323

2424
public string SortOrder { get; set; }
2525

26-
public bool OnSiteMap { get; set; }
26+
public bool? OnSiteMap { get; set; }
2727

28-
public bool OnMenu { get; set; }
28+
public bool? OnMenu { get; set; }
2929

30-
public bool AllowReviews { get; set; }
30+
public bool? AllowReviews { get; set; }
3131

3232
public string RequireLogin { get; set; }
3333

0 commit comments

Comments
 (0)