drinkrate/DrinkRateAPI/DbEntities/DbCompanyTable.cs
martinshoob e0ecd86288 Establish a one-to-one relationship
Define a one-to-one relationship between CompanyTable and ProductTable.

Correct a typo in the CompanyTable DbSet name within the ApplicationDbContext to ensure correct database mapping and operations.
2025-08-11 20:12:42 +02:00

13 lines
No EOL
316 B
C#

namespace DrinkRateAPI.DbEntities;
public class DbCompanyTable
{
public Guid Id { get; set; }
public ICollection<DbCompany> Companies { get; set; }
public string CompanyTableName { get; set; }
public Guid ProductTableId { get; set; }
public DbProductTable ProductTable { get; set; }
}