public static void BuildDatabaseSchima(this IApplicationBuilder application) { //Get All parameter of sp from Sql and Save to Caching Memory SqlRepository sqlRepository = new SqlRepository(); var sqlParams = sqlRepository.GetSqlParameters().Result; CacheProvider.ICacheProviderInstance.TrySetValue(CachingConstant.SpParameterKey, sqlParams); var definedtableInfor = sqlRepository.GetDefinedTableType().Result; CacheProvider.ICacheProviderInstance.TrySetValue(CachingConstant.DefinedTableType, definedtableInfor); }