can you use ms access as the backend of a asp.net dynamic data project website. Any links or examples?
At first I thought that this should be possible, because .NET generally supports ODBC and thus connecting to a MS Access database. Linq to SQL and the ADO.NET Entity Framework seem to be the most popular data providers for ASP.NET Dynamic Data. However, there seem to be some issues which require modifications to the data providers in order to make them compatible to EF, and Linq 2 Sql supports MS SQL Server only. Because of that, just MS SQL Server and MS SQL Server Compact seem to support EF at this moment. There is one last hope, though. According to this post on the Microsoft forums, you could implement your own Entity Framework Provider to support Access or ODBC in general.
Related
I maintain an asp.net MVC application which uses Entity Framework (database first) and connects to an oracle database.
My question:
How can I switch between oracle and SQL server using entity framework?
The meaning has the ability to get data from both oracle and SQL server. Also, the switch from oracle to SQL server (if it is possible) should be automated.
After a search, I found that I can switch between oracle and SQL server in the same app by:
Creating repositories for 2 models
Using mapping with 2 .edmx files. In this way, one of them will generate the code of model and entity classes and the other is used as a source of XML resources.
Also, I found other useful info but they are all very general.
How do I convert oracle edmx to the sql_server equivalent?
During my search, I migrated my oracle database using Microsoft's SSMA to an SQL server database so now I have the same database in oracle and also in SQL SERVER.
Does someone knows the steps to get me a bit closer to solution?
I have search but i can not get how to use ado.net sync framework.
can any body give me example code or samples ..or can share links that provide samples code of ado.net sync framework used for two sql server 2008 database Synchronization.
I did synchronization a while ago and I used following tutorials
Synchronizing SQL Server and SQL Express, although this one is between SQL Server and SQL Express but it will work just fine between two SQL Servers.
Solution of some problems I faced can be found here
Overview of how database synchronization works
In summary you need to do following
Provision Server database (only once)
Provision Client database (only once)
Do Synchronization
I'm used to work with ASP.NET and I have no problems there, but now I need to create a C# Console application and something is wrong.
I create console application
Add new item to project (Local database)
Fill in some basic data (id, name)
But when I create LINQ to SQL Class and drag my table to it like I do in ASP.NET I get error
The selected objects use an unsupported data provider
What am I doing wrong here, how can I make my work with databases using C# Console/Windows application as fast and easy as with ASP.NET applications?
The database driver / provider needs to allow for the usage of linq. If you are using a simple sqlite db, I would recommend using the DBLinq provider.
If you are using Microsoft's lightweight database (Sql Compact) then I believe this article maybe helpful.
The Object Relational Designer (O/R Designer) supports only the .NET Framework Data Provider for SQL Server ( System.Data.SqlClient).
Where as sdf local DB is a Compact Database. SQL Server Compact Edition (System.Data.SqlServerCe) is not supported by O/R Designer.
Instead you can create a db in SQLExpress and connect to Designer
What is the data provider for nhibernate? Is it ADO.NET?
Yes it uses ADO.NET internally.
Take a look at http://community.jboss.org/wiki/DatabasesSupportedByNHibernate.
It shows what tools/drivers are used to connect to different databases. for example:
Oracle 9i and 10g are supported, both using Microsoft driver (System.Data.OracleClient) and using Oracle driver (Oracle.Data.OracleClient).
Or:
To work with Firebird, install the latest Firebird .NET Data Provider.
I'm not sure whether it uses ADO.Net for SQL Server connections under the hood, But it seems that it doesn't use ADO.Net for other database systems.
I am trying to figure out what is the best way to connect an (existing) ASP.Net application to an Oracle database to read its dictionary information.
There are simply too many possibilities:
MS Data Provider for Oracle (requires 8.1.7, namespace System.Data.OracleClient)
Oracle Data Provider for .NET (requires 9.2, namespace Oracle.DataAccess)
Oracle Provider for OLE DB
MSDASQL and ODBC
As my current app uses MSSQL server, further options would be:
Linked Server, access via server..user.object
Linked Server via OPENROWSET
There are a couple of questions on similar topics on SO, but only some have accepted answers.
What's your experience with each of the drivers? What are their pros and cons?
Of course Oracle is recommending ODP.Net. Is the requirement of version 9.2 (or higher) a problem today?
I too recommend ODP.NET. Choose the latest provider (http://www.oracle.com/technology/tech/windows/odpnet/index.html). It can connect with an Oracle 9.2 database or a newer release of the database.
The MS Data Provider for Oracle is very limited. You can't work with arrays for example and user defined types. And why would Microsoft provide good support for connecting to Oracle?
You can also check out the provider of devart: http://www.devart.com/dotconnect/oracle/ . It supports the entity framework.
Dump OLE DB and ODBC options, if you have direct data access provider there is no need in using OLE DB or ODBC.
I recommend Oracle Data Provider for .NET.
Microsoft just announced it is deprecating System.Data.OracleClient.
I think that leaves you with a few choices (at least):
ODP.NET (free, from Oracle)
DevArt
DataDirect
DevArt also has a LINQ to Oracle implementation which could be interesting to you.