move project
This commit is contained in:
13
db/models/Setting.cs
Normal file
13
db/models/Setting.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Db.Models;
|
||||
|
||||
public class Setting
|
||||
{
|
||||
public required SettingName Name { get; set; }
|
||||
public required string Value { get; set; }
|
||||
|
||||
// methods to convert Value to specific types that are not connected to entity framework
|
||||
public T GetValue<T>()
|
||||
{
|
||||
return (T)Convert.ChangeType(Value, typeof(T));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user