drinkrate/DrinkRateAPI/DbEntities/DbProductTable.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
315 B
C#

namespace DrinkRateAPI.DbEntities;
public class DbProductTable
{
public Guid Id { get; set; }
public ICollection<DbProduct> Products { get; set; }
public string ProductTableName { get; set; }
public Guid CompanyTableId { get; set; }
public DbCompanyTable CompanyTable { get; set; }
}