//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "EF Domain Objects" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace AdventureWorks.Services.Entities
{
    public class CultureConfig : IEntityTypeConfiguration<Culture>
    {
        public void Configure(EntityTypeBuilder<Culture> c)
        {
            c.ToTable("Culture", "Production")
             .HasKey(e => e.CultureId);

            // configure properties
          
            c.Property(e => e.CultureId)
             .HasColumnName("CultureID")
             .HasColumnType("nchar")
             .HasMaxLength(6)
             .IsUnicode()
             .IsFixedLength()
             .IsRequired();

            c.Property(e => e.Name)
             .HasColumnName("Name")
             .HasColumnType("nvarchar")
             .HasMaxLength(50)
             .IsUnicode()
             .IsRequired();

            c.Property(e => e.ModifiedDate)
             .HasColumnName("ModifiedDate")
             .HasColumnType("datetime")
             .IsRequired();

        }
    }
}