How to use ASPNET BoilerPlate with Oracle Database - oracle

We are using .Net Core template of ASPNET BoilerPlate framework. It works fine with SQL Server, but now we need to use Oracle 11g instead. Is it possible? If yes, how can we implement it for our project? Thanks and sorry for my English.

Related

Migrate entity framework core db first sql server to oracle

I have a .net core project where i am using entity framework db first connecting to sql server which is working fine, now i have similar set of tables in oracle can i just run the project by changing connection string and provider to oracle? Or any major rework is needed to make this work?
You need to regenerate the DbContext mappings using reverse engineering

ASP.NET Boilerplate Framework with ADO.NET

How to use ADO.NET with the multi tenant application. I would like to to use ado.net with SQL server. please advise if there are any samples.
Just create a custom repository and use SQL inside it.
Check this article for more: http://www.aspnetboilerplate.com/Pages/Documents/Articles/Using-Stored-Procedures,-User-Defined-Functions-and-Views/index.html
It also uses SP and views.
Your choices are:
EF Core
EF
Dapper
NHibernate
If performance is top priority for you Dapper may be of interest.

ASP.NET MVC6 without EF

is it possible to use MVC6 without using EF?. Wanted to confirm as we have a huge application in .NET 4.0 WebForms which uses a custom BL layer and DB Layer to talk to multiple databases ( SQL Server & PostgreSQL) seamlessly.
Thanks in advance.
yes it's possible. EF is just help you to call database

does entity framework supports oracle database?

I am want to start a new project using entity framework 6. I have decided to use Database First approach. I want to know if it is possible to use Oracle database for my new project with entity framework?
It's not a matter of Entity Framework supporting Oracle. It's the other way around. Entity Framework supports any data source, as long as a provider is written for it. You need to install an Oracle provider with EF support. If I'm not mistaken, the latest version of ODP.NET, which is downloadable from Oracle, has EF support. It will generate a model from a database but whether it will go the other way, I don't know.
Yes it possible. And here you can find a tutorial about it from Oracle .

how to use Code first approach for oracle

I succeeded in code first approach for SQL in mvc4 application. But when I want to apply code first approach for Oracle then i am getting below message:
No Entity Framework provider found for the ADO.NET provider with invariant name
'Oracle.DataAccess.Client'. Make sure the provider is registered in the
'entityFramework' section of the application config file
Right now I am using Entity framework 6. Please let me know what is the simple step to create database using code first approach for ORACLE. Which "ddl" is required? What is web config setting?
You need to specify a provider for your Oracle DB, and there is no native provider,you need a third party one.
Here you have an "official" list of all the entity framework providers for different databases. Note that there is one from Oracle, that can also be installed as a Nuget package.
NOTE from Oracle docs:
Entity Framework 6 is not supported at this time. Some Visual Studio versions may default to Entity Framework 6. If so, set your .NET project to use an earlier version of Entity Framework.
DevArt dot connect supports all versions of EF.
So, to use the ODP you need to downgrade to EF5, or purchase dotConnect.
The details for configuring your web.config, or app.config can be found here: Deploying and Configuring ODP.NET to work without installation with Entity Framework
Starting with Oracle Data Access Components (ODAC) 12c Release 3 (12.1.0.2.1), ODP.NET supports Code First and Code First Migrations from Entity Framework 6. ODP.NET provides the data access to store the EF model inside the Oracle Database and evolve it.
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/CodeFirst/index.html#section1

Resources