This commit is contained in:
thuannd88
2024-09-05 15:58:31 +07:00
parent acfa22a83a
commit 7e927dfcc9
10 changed files with 220 additions and 20 deletions
+11
View File
@@ -12,6 +12,7 @@ namespace SafeBagDE70.Model
internal class CDMDbContext:DbContext
{
public DbSet<History> Histories { get; set; }
public DbSet<Customer> Customers { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer("Server=.\\SQLEXPRESS;Database=CDMLOCAL;User Id=cdm;Password=Navis@123;Trusted_Connection=False;TrustServerCertificate=True");
@@ -35,4 +36,14 @@ namespace SafeBagDE70.Model
public string Status { get; set; }
}
public class Customer
{
public int Id { get; set; }
public string? TenantName { get; set; }
public string? TenantCode { get; set; }
public string? AccountNumber { get; set; }
public string? AccountHolder { get; set; }
public string? PinCode { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}