예제 #1
0
        private void TestEntityEntityTypeConfiguration(OwnedNavigationBuilder <TestAggregateRoot, TestEntity> builder)
        {
            builder.ConfigureEntity <TestAggregateRoot, TestEntity, Guid>();
            builder.ConfigureCreatedDate <TestAggregateRoot, TestEntity, Guid?>();
            builder.ConfigureUpdatedDate <TestAggregateRoot, TestEntity, Guid?>();
            builder.ConfigureDeactivatedDate <TestAggregateRoot, TestEntity, Guid?>();
            builder.ConfigureReactivatedDate <TestAggregateRoot, TestEntity, Guid?>();

            builder.Property(e => e.TestString)
            .IsRequired()
            .HasMaxLength(256);
        }