How to create a small ASP.NET MVC web application using SQLite database? I have tried so many ways and searched in web all of them showing using .NET Core & ASP.NET Core MVC, I don't need this.
But I need to create an ASP.NET MVC web application. I have tried by adding extension in Visual Studio 2019. I am not satisfied like using SQL Server.
I need just how to add SQLite to my ASP.NET MVC application. Please ask me if you need explanation. Please suggest a link or Youtube video. I am a beginner
Related
I want to create a Web API in .NET Framework 4.5 (hosting enviroment that we are using requires only .NET 4 or 4.5 and not Core) using sqlite database. What is the right way to do implement a web api and connect it to the sqlite database in a way to deploy it directly through plesk? Please have in mind that we do not have a dedicated server and we are going to use Plesk to upload the published API.
Thanks in advance
I have already created the api, but I want some help with the creation of sqlite database and use of tables so to deploy it through Plesk.
Use google and reseach. It's not a single issue.
I'm working on building a simple MVC application which has some pages which non-registered users should be able to view and others that only registered users should be able to view. I have already developed a large part of the application, and only now have I started to think about authentication. I want to use ASP.NET Identity, but I can't figure out how to add it to this application. All of the tutorials I can find rely on starting with the template in Visual Studio. How can I modify my application to add this authentication?
I'm working on a new web application in ASP.net core and currently use the OData WebApi. The issue I'm currently having is that one OData feature I want to use $Crossjoin is not supported by the web api. Also noted in this question from 2 years ago. And I have not seen any updates since.
Essentially I want to be able to use a query like this with Odata and have my application hosted on ASP.net Core:
http://host/service/$crossjoin(Products,Sales)?
$filter=Products/ID eq Sales/ProductID
So right now I'm assuming there is no way to get $Crossjoin to work with WebAPI. Are there any libraries that will support that protocol and can also be hosted on ASP.net core or at the same time? One that I came across OData V4 Service modules - SQL Connector that I can host using node.
The reason why I would like to use Crossjoin is because I cannot modify tables or add views to the database I am accessing. It does not use Primary or Foreign Keys. And I will want to be be able to join on multiple properties. I am also early into building my application so I don't mind migrating my current WebApi to something else to save me time in the future.
To have an idea of how my application looks, it is based off the ASP.NET Core Vue Starter template with Typescript. I am also using Microsoft SQL Server 2012, and Entity Framework Core.
Any suggestions are greatly appreciated, thank you.
I know this is a very common question and I could find several answers, but I think my situation is a bit different.
So, I have an ASP.NET Website (NOT a web application), built using "Web forms". Its a very simple website which does bunch of REST calls and talks to the SQL Server 2008. Can you please help me finding a step by step guide to deploy the same on Windows Azure using VS 2010? As of now, the website runs fine on a traditional web hosting server.
So far what I am getting are approaches which use MVC (and using ASP.NET web application, not website). I don't think that I should be concerned about MVC at all? Does a website vs. web application aspect make a difference? If yes, do I need to convert the website to web application?
There's a lot of content on web, so I am a bit confused given my condition. Can someone please put me in right direction? Thanks a lot.
You'll need to convert your Website project to an ASP.NET Web Role project, whether you first convert it to a ASP.NET Web Application or not doesn't really matter. The rest of the tutorial you already linked to applies just fine.
There's no need to look at ASP.NET MVC, It's a different technology than web forms, and there's no need to move to it in order to get your site hosted on Azure.
As for your database, unless you host that yourself in a VM-Role or somewhere else (and connect it using Azure Connect), you'll need to convert it to Sql Azure or Azure Table Storage. SQL Azure is largely compatible with SQL Server, but there are a few features which are unsupported.
I'm planning to do a multilanguage asp.net application using database.
do not use any resources like (globlization and localization)
please give me some sample project (or) a reference.
do not use any Dll's and third parties. please suggest me the solution.
Refer to the following:
Creating multilingual websites - Part 1
Multi-lingual web applications using ASP.Net 4
Multilingual Applications in .NET