public virtual void Apply(InternalEntityBuilder entityBuilder) { Check.NotNull(entityBuilder, "entityBuilder"); var entityType = entityBuilder.Metadata; // TODO: Honor [NotMapped] // Issue #107 if (entityType.HasClrType) { var primitiveProperties = entityType.Type.GetRuntimeProperties().Where(ConventionsPropertyInfoExtensions.IsCandidatePrimitiveProperty); foreach (var propertyInfo in primitiveProperties) { entityBuilder.Property(propertyInfo, ConfigurationSource.Convention); } } }