mirror of
https://github.com/eliasstepanik/SimpleFunctions.git
synced 2026-01-11 21:58:31 +00:00
25 lines
566 B
C#
25 lines
566 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Functions.Data;
|
|
|
|
public class Environment
|
|
{
|
|
public Environment(string key, string value)
|
|
{
|
|
Key = key;
|
|
Value = value;
|
|
}
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
public string Key { get; set; }
|
|
[Required]
|
|
public string Value { get; set; }
|
|
|
|
public int FunctionId { get; set; }
|
|
public Function Function { get; set; } = null!;
|
|
} |