A newer version of the Ed-Fi ODS / API is now available. See the Ed-Fi Technology Version Index for a link to the latest version.

How To: Remove Sample, GrandBend, and Homograph Extensions

The ODS / API ships with GrandBend, Sample and Homograph extensions that serve as examples and as test cases for different extension possibilities.  Perform the following steps to remove them from your implementation:

  1. Remove EdFi.Ods.Extensions.GrandBend, EdFi.Ods.Extensions.Sample and EdFi.Ods.Extensions.Homograph Projects in Visual Studio. Right-click on the Project in the Solution Explorer, select Remove.
  2. Manually delete EdFi.Ods.Extensions.GrandBen, EdFi.Ods.Extensions.Sample and EdFi.Ods.Extensions.Homograph Extension Project files from disk. These will be in {{ Source Code Root }}\Ed-Fi-ODS-Implementation\Application\.
  3. Remove EdFi.Ods.Profiles.ExtensionsSample Profile Project in  Visual Studio. Right-click on the Project in the Solution Explorer, select Remove.
  4. Manually delete EdFi.Ods.Profiles.ExtensionsSample Profile Project files from disk. These will be in {{ Source Code Root }}\Ed-Fi-ODS-Implementation\Application\.
  5. Remove references to the Extension Projects. These references will be in your OwinStartup class (e.g., EdFi.Ods.WebApi\Startup\ApiStartup.cs). Remove the using statement and the AssemblyLoader call for each project.
  6. Save all modified files, close Ed-Fi-ODS.sln, and re-run the code generation steps outlined in the Getting Started Guide (i.e., from a PowerShell prompt run Initialize-PowershellForDevelopment.ps script, followed by the initdev command). Then, run the application and view the Ed-Fi ODS / API in the Swagger UI.

If you do not plan on having any extensions, you could turn off EdFi.Ods.Extensions.GrandBend, EdFi.Ods.Extensions.Sample and EdFi.Ods.Extensions.Homograph extensions without source code modifications by using the following configurations in EdFi.Ods.WebApi Web.config: 

<add key="extensions:featureIsEnabled" value="true"/>
<add key="ExcludedExtensionSources" value="Sample,GrandBend,Homograph" />