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:
Andre Beging
2025-04-01 10:41:09 +02:00
parent 8595a18d0c
commit bf64239625
43 changed files with 509 additions and 231 deletions

View File

@@ -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());

View File

@@ -1,4 +1,5 @@
using FoodsharingSiegen.Contracts.Entity;
using FoodsharingSiegen.Contracts.Enums;
namespace FoodsharingSiegen.Contracts.Helper
{