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
316 B
C#
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; }
|
|
} |