talkspace templates added
This commit is contained in:
8
Account_SQLite/Data/Account.cs
Normal file
8
Account_SQLite/Data/Account.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace Account_SQLite.Data
|
||||
{
|
||||
public class Account
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
14
Account_SQLite/Data/AccountContext.cs
Normal file
14
Account_SQLite/Data/AccountContext.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Account_SQLite.Data
|
||||
{
|
||||
public class AccountContext : DbContext
|
||||
{
|
||||
public AccountContext(DbContextOptions<AccountContext> opts): base(opts)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DbSet<Account> Accounts { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user