mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
19 lines
484 B
C#
19 lines
484 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ToDoContract
|
|
{
|
|
public class DataContext : DbContext
|
|
{
|
|
public DbSet<ToDoEntry> ToDoEntries { get; set; }
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
|
=> options.UseSqlite("Data Source=state/todo.db");
|
|
}
|
|
|
|
public class ToDoEntry
|
|
{
|
|
public int Id { get; set; }
|
|
public string Content { get; set; }
|
|
public string CreatedBy { get; set; }
|
|
}
|
|
} |