I found out there is no OLEDB or native ADO.NET driver for OpenEdge.
Has anyone had success in using the OpenEdge driver with Linq or Entity Framework?
EF Core
There is still no official solution from ProgressSw but I can recommend the provider from Alex Wiese (see Answer below): EntityFrameworkCore.OpenEdge
EF 6 (.Net Framework)
Because ODBC is the only supported Interface for .net Clients you can't use OpenEdge DB with Entity Framework directly (Why doesn't Entity Framework support ODBC?).
But there is a commercial ADO.NET Driver for OpenEdge from OpenLink
and an unofficial NHibernate Dialect.
Update
I've now created an Entity Framework Core provider for OpenEdge. You can now use Entity Framework Core against an OpenEdge database via ODBC.
Dapper
You can use the simple ORM Dapper with ODBC connection to Progress OpenEdge.
using (var connection = new OdbcConnection("DSN=My OpenEdge DB;Pwd=mypassword"))
{
connection.Open();
var dogs = connection.Query<Dog>("SELECT * FROM pub.Dogs");
}
You can use Dapper.Contrib (so you don't need to write SQL) for some select statements. Other statements don't work correctly and there are issues with parameters. You can fork Dapper and modify the code to fix these issues.
Related
Is there a way to use EF with SQL Compact database on the new .NET 5 Windows Framework?
I tried it, but I couldn't make it workable.
Is this library supported in .NET 5?
EntityFrameworkCore.SqlServerCompact40 (looks empty the package folder)
I cannot access to the optionsBuilder.UseSqlCe(#"Data Source=C:\data\Blogging.sdf"); method.
If it is not supported, can I use EF with CE in .NET Core 3.1?
The library only supports EF Core 2.2.
If I get a sponsor I am willing to update.
You can use SQLCE with raw ADO.NET and .NET 5.
See more info here; https://erikej.github.io/sqlce/2020/08/17/netcore-sql-compact.html
Does Entity Framework Core support MariaDB?
I see it's not among the list of supported providers, but MySQL is. Maybe the MySQL provider would work against MariaDB?
I'm using the Pomelo MySql provider with Maria DB. It works great. MariaDB is just a fork of MySql,
is there some possibility to work with an open database like mysql, mariadb or other and ASP.NET vNext?
Perhaps a beta driver or something like that?
For ASP.NET vNext you can choose to target the full .NET Framework or a slimmed down, bin-deployable, cross platform, Core framework.
If you target the full .NET Framework then you get all the data access options you had before. If you target the CoreCLR then you can use the new version of Entity Framework (EF7). Currently we have the following providers available on CoreCLR; SQL Server, SQLite, and an in memory provider for testing. Of course, more providers will become available as we work towards RTM.
In addition to EF7, there are also the corresponding provider specific SDKs that EF is building on top of, and these can be used in application code as well (e.g. there is an implementation of SqlClient that can be used to access a SQL Server database).
You can read more about our plans for EF7 here - http://blogs.msdn.com/b/adonet/archive/2014/05/19/ef7-new-platforms-new-data-stores.aspx.
It depends on if you are using the CoreCLR (the trimmed down version) or the Desktop profiles. In the Desktop profile you have everything you have in .NET available and you can add your own open source libraries (via Nuget).
Just open up your project.json and add the needed dependencies.
Anyway you should not be dealing with low level ADO.NET, you can use Entity Framework, or Massive or nHibernate, or whatever, to abstract away the specific database your project is using now, as it is bound to change or multiply during the project lifetime...
You should still be able to use anything ADO.Net related with ASP.Net vNext - it is, after all, still .Net!
Yes, it is possible, but only if you use full .net profile (on windows it will be .net framework and on linux - mono). NHibernate working well on mono, so you can eventually use mysql, postgresql and other databases in you APS.NET 5 vNext application. Here is complete example of application with NHibernate and PostgreSQL on Ubuntu server.
I need to use Oracle with Asp.net. Kindly Suggest me for Which Components i need to download to Use Oracle with Asp.net
You could use ODP.net which is Oracle's solution to connect .net applications to the Oracle world.
It ships with a membership provider for ASP.net and an entity framework implementation for Oracle and is integrated in Visual Studio.
http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51odt-453447.html
This article will provide you with a couple of different ways to use Oracle with .net. Including utilizing Oracle with .net's own ORM Entity Framework.
http://nhforge.org/Default.aspx
NHibernate is another ORM that provides a provider for connecting to Oracle.
We have a wonderful ASP.NET MVC 2 web application using MS SQL 2008 and VS 2010. The customer wants to use Oracle 10g as a back end database. I want to point our MVC2 app to it and run our tests. I have no clue where to start with Oracle 10g.
Anyone have a how-to link on how to setup an Oracle 10g database and use it in place of SQL 2008 above for testing? I assume Oracle has some sort of Developer edition like Microsoft has SQL Express. Any ideas?
Oracle's equivalent to Microsoft SQL Express is Oracle XE. But I don't think it will be easy for you to migrate your application to use OracleXE instead of MSSQLServer Express.
If you are using LinQ to SQL, you don't have Oracle support. If you are using Entity Framework, you have Oracle third party support (although an official support for Oracle is supposed to be on its way).
ADO.NET provider will be different.
And of course, you won't have 100% data type equivalence.
So I wish you good luck, and if you have the possibility, convince your client to use SQLServer Express or be prepared to migrate a lot of your app.