Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello !
I am very new to Blazor Webassembly Applications and I am trying to develop one.
I have a server running MS SQL Server Express 2008 R2.
On that server I have a database that I use for a Visual FoxPro desktop application.
Now I want to extend that application on the web and I want to use Blazor for that.

This is what I want :
I want to develop an WEB application that will be able to connect to the MSSQL database from the server I have and to manipulate data.

First I need a log-in form to authenticate the user based on username and password. For my users I have a table containing their credentials and I want to use the same table from my server.

After user successful authentication it must be able to add new records to tables to delete records from tables and so on.

The most important thing for me is how can a user be authenticated based on existing user table.

Can you provide me some help about how to start ?

Thank You Very Much !

What I have tried:

I am very new to Blazor Webassembly Applications
Posted
Updated 30-Apr-20 14:15pm

1 solution

Basically it should be very similar to how you are authenticating in your desktop app:
1. Collect user name and password from user.
2. Validate against your database.
3. Reroute accordingly.

Unfortunately you most likely wont find a tutorial on this:
1. Your existing app is built on an obsolete framework
2. Since .NET; there has been a steady migration to using ORMs to access the DB.
3. Most tutorials and samples you will find will be using something like Entity Framework (EF)
4. Authentication / Authorization methods have changed as well, built on ORMs like EF.

Now what you do have going for you is that the COM objects used in your existing app can easily be translated into ADO.net queries.
 
Share this answer
 
Comments
TOM JOHN LITTLE 30-Apr-20 20:26pm    
So please tell me how to begin and point me to a sample about how can I connect to my database using Blazor and Webassembly.
I need do do the first three steps that you mentioned above:
1. Collect user name and password from user.
2. Validate against your database.
3. Reroute accordingly.

Thank You !
MadMyche 30-Apr-20 20:37pm    
I would start with some Blazor tutorials to that you can get yourself familiar with that environment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900