Ejemplo n.º 1
0
        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;
 }
Ejemplo n.º 3
0
 public TimeSpanEntityPropertyModelConfiguration(EntityModelBuilderConfiguration <T> propertyConfiguration, PropertyInfo property) : base(property)
 {
     this.propertyConfiguration = propertyConfiguration;
 }
Ejemplo n.º 4
0
 public EntityModelBuilder(EntityDescriptor descriptor, EntityModelBuilderConfiguration configuration)
 {
     Descriptor    = descriptor;
     Configuration = configuration;
 }