I'm new to Umbraco and am trying to write my first Umbraco .Net 7 app (I already know .Net). Is there any documentation on the various .Add* (i.e. .AddBackOffice) methods and their dependencies?
I want the minimum number of components to get and cache published objects. I'm trying to use UmbracoHelper to get the content but when the app runs I get the error " Could not check the upgrade state" , and "The specified invariant name 'Microsoft.Data.SqlClient' wasn't found in the list of registered .NET Data Providers."
The code:
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddEndpointsApiExplorer();
services.AddSwaggerGen();
How to use services.AddUmbraco
I'm new to Umbraco and am trying to write my first Umbraco .Net 7 app (I already know .Net). Is there any documentation on the various .Add* (i.e. .AddBackOffice) methods and their dependencies?
I want the minimum number of components to get and cache published objects. I'm trying to use UmbracoHelper to get the content but when the app runs I get the error " Could not check the upgrade state" , and "The specified invariant name 'Microsoft.Data.SqlClient' wasn't found in the list of registered .NET Data Providers."
The code: public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddEndpointsApiExplorer(); services.AddSwaggerGen();
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseSwagger(); app.UseSwaggerUI(); }
Appsettings
"ConnectionStrings": { "umbracoDbDSN": "server=xxx;Database=UmbracoCms;TrustedConnection=True;TrustServerCertificate=True", "umbracoDbDSNProviderName": "Microsoft.Data.SqlClient", }
is working on a reply...