/// <summary> /// On startup, this will make sure basic data and stored procedures are updated /// </summary> public async Task SeedStoredProcedures() { var assembly = Assembly.GetAssembly(typeof(DocumentDbRepository)); var storedProcedures = assembly.GetStoredProcedures(".Seed.Stored_Procedures", ".js"); foreach (var storedProcedure in storedProcedures) { await _documentStore.CreateStoredProcedure(storedProcedure, false, true); } }