Added EF and DB to the core, crude demo in the UI
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace WinWARP.Core.Models.Entities;
|
||||
|
||||
public class Server
|
||||
{
|
||||
[Key]
|
||||
public int Id
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
|
||||
public int SubscriptionId
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace WinWARP.Core.Models.Entities;
|
||||
|
||||
public class Subscription
|
||||
{
|
||||
[Key]
|
||||
public int Id
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[Required]
|
||||
[StringLength(100)]
|
||||
public string Link
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[StringLength(100)]
|
||||
public string WebPage
|
||||
{
|
||||
get; set;
|
||||
} = string.Empty;
|
||||
|
||||
[StringLength(100)]
|
||||
public string DefaultTitle
|
||||
{
|
||||
get; set;
|
||||
} = string.Empty;
|
||||
|
||||
public int DefaultUpdateInterval
|
||||
{
|
||||
get; set;
|
||||
} = 1;
|
||||
|
||||
[StringLength(100)]
|
||||
public string Title
|
||||
{
|
||||
get; set;
|
||||
} = string.Empty;
|
||||
|
||||
public int UpdateInterval
|
||||
{
|
||||
get; set;
|
||||
} = 1;
|
||||
|
||||
[StringLength(100)]
|
||||
public string SupportURL
|
||||
{
|
||||
get; set;
|
||||
} = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user