You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
564 B
C#
20 lines
564 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace EFCore.Jet.Integration.Test.Model08
|
|
{
|
|
public class PageImageMap : IEntityTypeConfiguration<PageImage>
|
|
{
|
|
public void Configure(EntityTypeBuilder<PageImage> builder)
|
|
{
|
|
// Primary Key
|
|
builder.HasKey(t => t.Id);
|
|
|
|
// Table & Column Mappings
|
|
builder.ToTable("PageImages");
|
|
builder.Property(t => t.Id).HasColumnName("Id");
|
|
// Other properties go here
|
|
}
|
|
|
|
}
|
|
} |