-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from SpatialFocus/feat/enum-description
Added Enum description for lookup #6
- Loading branch information
Showing
4 changed files
with
96 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/SpatialFocus.EntityFrameworkCore.Extensions/EnumWithNumberLookupAndDescription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// <copyright file="EnumWithNumberLookupAndDescription.cs" company="Spatial Focus"> | ||
// Copyright (c) Spatial Focus. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace SpatialFocus.EntityFrameworkCore.Extensions | ||
{ | ||
public class EnumWithNumberLookupAndDescription<T> : EnumWithNumberLookup<T> | ||
{ | ||
public EnumWithNumberLookupAndDescription() | ||
: base() | ||
{ | ||
} | ||
|
||
public EnumWithNumberLookupAndDescription(T value) | ||
: base(value) | ||
{ | ||
} | ||
|
||
public string Description { get; set; } | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/SpatialFocus.EntityFrameworkCore.Extensions/EnumWithStringLookupAndDescription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// <copyright file="EnumWithStringLookupAndDescription.cs" company="Spatial Focus"> | ||
// Copyright (c) Spatial Focus. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace SpatialFocus.EntityFrameworkCore.Extensions | ||
{ | ||
public class EnumWithStringLookupAndDescription<T> : EnumWithStringLookup<T> | ||
{ | ||
public EnumWithStringLookupAndDescription() | ||
: base() | ||
{ | ||
} | ||
|
||
public EnumWithStringLookupAndDescription(T value) | ||
: base(value) | ||
{ | ||
} | ||
|
||
public string Description { get; set; } | ||
} | ||
} |