2020-06-04 08:42:47 +02:00

33 lines
961 B
C#

using Microsoft.EntityFrameworkCore;
using System;
namespace ScrumTaskboard
{
public class TaskContext : DbContext
{
public DbSet<ScrumTask> Tasks { get; set; }
public TaskContext() { }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseNpgsql("Host=nig.gl; Port=8543; Username=scrum; Database=taskboard; Password=c6gXud7YvBWp2sgxSgy4wRN");
}
public TaskContext(DbContextOptions<TaskContext> options) : base(options) { }
}
public class ScrumTask
{
public int id { get; set; }
public string title { get; set; }
public string content { get; set; }
public int status { get; set; }
public int category { get; set; }
public int assignedto { get; set; }
public int sprint { get; set; }
public int project { get; set; }
public int userstory { get; set; }
}
}