⭐ Join Us on Patreon: www.patreon.com/CodingDroplets 💥Host Your .NET Core Apps in Linux: ruclips.net/video/bXK-F-uL7Qo/видео.html Blazor Tutorial Series: ruclips.net/video/dY_AWdCzsCY/видео.html
At around 20:05 i get this error "Severity Code Description Project File Line Suppression State Error CS1061 'IServiceCollection' does not contain a definition for 'AddDemoApiClientService' and no accessible extension method 'AddDemoApiClientService' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?) Demo.BlazorApp C:\Users\Audrius\Desktop\Database\Database\Demo.BlazorApp\Program.cs 11 Active" does anyone know a fix?
Thank you for your comment! Make sure you've added the appropriate using directive or assembly reference in your Program.cs file. Additionally, ensure that the method AddDemoApiClientService is correctly defined in your service collection extension methods. If you're still experiencing issues, please double-check your code against the source code available at github.com/codingdroplets/DemoWebApi.
please also Split Tutorial Video 1] creating Tables at run time must be optional, we already have Data tables with right data type into DB. 2] Actual API creation 3] Calling API (may call in any other app type rather than Blazer so.)
I know class ServiceCollectionExtension is to get appsetting parameter ApiBaseAddress,But I don't quite understand this writing style. Is there any introduction in this area? Or is there a more easily understandable way of writing
To find the connection string for your SQL Server database, you'll need to gather details such as the server name, database name, and authentication method with credentials. Once you have these, you can construct the connection string using a template and replace placeholders with the actual values. After adding the connection string to the appsettings.json file in your .NET Web API project
Retrieving data from three tables with relationships in a .NET Web API with EF Core involves performing a join operation in your Entity Framework query.
Severity Code Description Project File Line Suppression State Error CS0234 The type or namespace name 'CreateBuilder' does not exist in the namespace 'WebApplication' (are you missing an assembly reference?) WebApplication E:\Projects\WebApplication\WebApplication\Program.cs 3 Active bro how to solve
I think you have named your application as 'WebApplication'. Just try to rename your application or use 'Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder' (along with namespace) in your program.cs class.
I have another error. When i try to launch the final app it doesnt show the list of products. I can verify that all my methods works as they should in swagger. But when Index.razor loads it get and unhandled exeption occured while processing the request. IN the Console I can see Failed to load resource: The server responded with a status og 500(internal server error) Please help a big newbiee I want to learn this tuff so much, but no matter where i look i run into these roadblocks :-)
Thank you for reaching out, and I'm sorry to hear that you're encountering difficulties. Ensure that your Blazor application is correctly consuming the API endpoints and handling any potential exceptions gracefully. You can compare your code with the demo project from the tutorial, you can find it on GitHub at: github.com/codingdroplets/DemoWebApi
I am getting lost in the video, where you are migrating the SQL db. Are we supposed to have a SQL db of our own, or where did that come from ? Ok I understand more now, but Now it seems i have to setup remote access to SQL Server. Not sure how to do that. I get this error. network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I found out that the auto generated class for constructing the dbo.product table had an error in it. my generated file was missing a parenthesis. when specifying the type it looked like this... price = table.Column(type: "decimal(7, 2", nullable: false) It should be like this instead... price = table.Column(type: "decimal(7, 2)", nullable: false)
⭐ Join Us on Patreon: www.patreon.com/CodingDroplets
💥Host Your .NET Core Apps in Linux: ruclips.net/video/bXK-F-uL7Qo/видео.html
Blazor Tutorial Series: ruclips.net/video/dY_AWdCzsCY/видео.html
At around 20:05 i get this error "Severity Code Description Project File Line Suppression State
Error CS1061 'IServiceCollection' does not contain a definition for 'AddDemoApiClientService' and no accessible extension method 'AddDemoApiClientService' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?) Demo.BlazorApp C:\Users\Audrius\Desktop\Database\Database\Demo.BlazorApp\Program.cs 11 Active" does anyone know a fix?
Thank you for your comment! Make sure you've added the appropriate using directive or assembly reference in your Program.cs file. Additionally, ensure that the method AddDemoApiClientService is correctly defined in your service collection extension methods.
If you're still experiencing issues, please double-check your code against the source code available at github.com/codingdroplets/DemoWebApi.
please also Split Tutorial Video
1] creating Tables at run time must be optional, we already have Data tables with right data type into DB.
2] Actual API creation
3] Calling API (may call in any other app type rather than Blazer so.)
Thank you very much, this is a great help❤❤
You're welcome! Glad to hear that. Thank you so much for your feedback.
Amazing video!! learned a lot from this video. Thank you so much for your effort.
Thank you for your feedback! I'm glad to hear that you found the video helpful.
I know class ServiceCollectionExtension is to get appsetting parameter ApiBaseAddress,But I don't quite understand this writing style. Is there any introduction in this area? Or is there a more easily understandable way of writing
Thank you very much
You are welcome
Would this work with Azure Cosmos DB given I have the correct Connection String?? Im gonna try it rn
This approach should work with Azure Cosmos DB
How do we find the connection string to add to our appsettings.json file?
To find the connection string for your SQL Server database, you'll need to gather details such as the server name, database name, and authentication method with credentials. Once you have these, you can construct the connection string using a template and replace placeholders with the actual values. After adding the connection string to the appsettings.json file in your .NET Web API project
thank you
You're welcome
is this code first approach
Yes, this tutorial uses the Code First approach with Entity Framework Core.
Please yo have firstdatabase complex and using store procedure with using erp exixting
how to get data from 3 table with relationship
Retrieving data from three tables with relationships in a .NET Web API with EF Core involves performing a join operation in your Entity Framework query.
@@CodingDroplets do you have sample or any guide. thank you
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'CreateBuilder' does not exist in the namespace 'WebApplication' (are you missing an assembly reference?) WebApplication E:\Projects\WebApplication\WebApplication\Program.cs 3 Active
bro how to solve
I think you have named your application as 'WebApplication'. Just try to rename your application or use 'Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder' (along with namespace) in your program.cs class.
@@CodingDroplets thanks
You are welcome!
I have another error.
When i try to launch the final app it doesnt show the list of products. I can verify that all my methods works as they should in swagger.
But when Index.razor loads it get and unhandled exeption occured while processing the request.
IN the Console I can see Failed to load resource: The server responded with a status og 500(internal server error)
Please help a big newbiee I want to learn this tuff so much, but no matter where i look i run into these roadblocks :-)
Thank you for reaching out, and I'm sorry to hear that you're encountering difficulties. Ensure that your Blazor application is correctly consuming the API endpoints and handling any potential exceptions gracefully. You can compare your code with the demo project from the tutorial, you can find it on GitHub at: github.com/codingdroplets/DemoWebApi
I know its 8 months old but.... I had this today its your connection string, had to change it in several places.
I am getting lost in the video, where you are migrating the SQL db. Are we supposed to have a SQL db of our own, or where did that come from ?
Ok I understand more now, but Now it seems i have to setup remote access to SQL Server. Not sure how to do that.
I get this error.
network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I found out that the auto generated class for constructing the dbo.product table had an error in it.
my generated file was missing a parenthesis. when specifying the type it looked like this...
price = table.Column(type: "decimal(7, 2", nullable: false)
It should be like this instead...
price = table.Column(type: "decimal(7, 2)", nullable: false)
It seems like you have issue with your connection string. Please check whether you provided the connection string correctly.