Skip to content

Release Notes

Patrick edited this page Oct 29, 2016 · 20 revisions

Addition of the 'Aspect' field to the Section table. With the Aspect field, cross-cutting configuration data can be more effectively categorised.

If you are upgrading from an earlier version of configuration.entityframework, you will need to perform the following 2 steps

  1. Add the 'Aspect' column to the Section table

  2. Set the 'Aspect' field to 'settings' for any existing or new record created in the Section Table. Alternatively, pass null into the 'aspect' argument for the AddEntityFrameworkConfig extension method as in the following sample code.

Sample Code

var config = new ConfigurationBuilder()
   .SetBasePath(Environment.CurrentDirectory)
   .AddJsonFile("appsettings.json", true, true)
   .AddEntityFrameworkConfig(builder => builder.UseSqlServer(@"Data Source=.;Initial Catalog=Configuration;Integrated Security=True"), "applicationname', null)
   .Build();
Clone this wiki locally