Populating settings table in da created
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
namespace EntityFrameworkBasics
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace EntityFrameworkBasics
|
||||
{
|
||||
/// <summary>
|
||||
/// Our Settings database table representional model
|
||||
@ -8,14 +10,19 @@
|
||||
/// <summary>
|
||||
/// The unique Id for this entry
|
||||
/// </summary>
|
||||
[Key]
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// The settings name
|
||||
/// </summary>
|
||||
[Required]
|
||||
[MaxLength(256)]
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// The settings value
|
||||
/// </summary>
|
||||
[Required]
|
||||
[MaxLength(2048)]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user