public EntityModelBuilderConfiguration <T> Entity <T>() where T : DomainEntity
        {
            if (!entityModelBuilderConfigurations.TryGetValue(typeof(T), out var entityModelBuilderConfiguration))
            {
                entityModelBuilderConfiguration = new EntityModelBuilderConfiguration <T>();
                entityModelBuilderConfigurations.Add(typeof(T), entityModelBuilderConfiguration);
            }

            return((EntityModelBuilderConfiguration <T>)entityModelBuilderConfiguration);
        }
 public ValueObjectModelBuilder(ValueTypeDescriptor descriptor, EntityModelBuilderConfiguration configuration)
 {
     Descriptor    = descriptor;
     Configuration = configuration;
 }
Exemple #3
0
 public TimeSpanEntityPropertyModelConfiguration(EntityModelBuilderConfiguration <T> propertyConfiguration, PropertyInfo property) : base(property)
 {
     this.propertyConfiguration = propertyConfiguration;
 }
 public EntityModelBuilder(EntityDescriptor descriptor, EntityModelBuilderConfiguration configuration)
 {
     Descriptor    = descriptor;
     Configuration = configuration;
 }