Files

22 lines
683 B
C#
Raw Permalink Normal View History

2023-10-13 17:15:52 +09:00
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InventoryManagement.Components
{
internal class InventoryContext : DbContext
{
public DbSet<Product> Products { get; set; }
2023-10-18 11:02:10 +09:00
public DbSet<Accessary> Accessaries { get; set; }
2023-10-13 17:15:52 +09:00
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(@"Data Source=peacecloud.synology.me,21433;Initial Catalog=Study;User ID=study;Password=Study1234;Encrypt=false");
base.OnConfiguring(optionsBuilder);
}
}
}