Refactor enums and update Interaction entity field
Moved enums to a dedicated namespace and updated references across the codebase. Renamed the `Info` field in the `Interaction` entity to `Info1`, including necessary migrations and UI adjustments. These changes improve the organization and consistency of the codebase.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace FoodsharingSiegen.Contracts.Helper
|
||||
/// </summary>
|
||||
/// <param name="enumVal">The enum val</param>
|
||||
/// <returns>The string</returns>
|
||||
public static string GetCustomValue(this Enum enumVal)
|
||||
public static string GetCustomValue(this System.Enum enumVal)
|
||||
{
|
||||
var attribute = enumVal.GetAttributeOfType<CustomValueAttribute>();
|
||||
return attribute?.Value ?? string.Empty;
|
||||
@@ -30,7 +30,7 @@ namespace FoodsharingSiegen.Contracts.Helper
|
||||
/// <typeparam name="T">The </typeparam>
|
||||
/// <param name="enumVal">The enum val</param>
|
||||
/// <returns>The</returns>
|
||||
private static T? GetAttributeOfType<T>(this Enum enumVal) where T : Attribute
|
||||
private static T? GetAttributeOfType<T>(this System.Enum enumVal) where T : Attribute
|
||||
{
|
||||
var type = enumVal.GetType();
|
||||
var memInfo = type.GetMember(enumVal.ToString());
|
||||
|
||||
Reference in New Issue
Block a user