Mule : Use dynamic config-ref based on input values

I’m trying to connect to SQL Database with some configuration. But based on the input from the API we are supposed to hit different DB. As of now, we have the code as <choice doc:name=”Check myFlag”> <when expression=”#[flowVars.myFlag == ‘true’]”> <db:stored-procedure config-ref=”Database_Configuration_1″ doc:name=”DB_config_1″> <db:dynamic-query><![CDATA[#[flowVars.callSPName]]]></db:dynamic-query> </db:stored-procedure> </when> <otherwise> <db:stored-procedure config-ref=”Database_Configuration_2″ doc:name=”DB_config_2″> <db:dynamic-query><![CDATA[#[flowVars.callSPName]]]></db:dynamic-query> </db:stored-procedure> </otherwise> </choice> Instead…

Details

entity framework code first model builder

In my DbContext class I have the following: void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Properties<string>().Configure(c => { c.HasMaxLength(250); }); } but also inside the EntityTypeConfiguration class for a specific model I have: { Property(p => p.Name).HasMaxLength(500); } The problem is that setting the property to 500 inside the Configuration class is not taking effect and EF is…

Details