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.
13 lines
No EOL
315 B
C#
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; }
|
|
} |