Subsonic support for Oracle ODP.NET? - oracle

I'm new to Subsonic and I work primarily with Oracle databases. Can subsonic be used against an Oracle database and does it support the use of Oracle's ODP.NET data provider.
If yes, can you point me to a good example?
Thanks in advance.
Scott

Marve is a little misleading. Subsonic can be used with Oracle but SubSonic 2.x actually uses System.Data.OracleClient. Subsonic 3.0 does not have any .tt files for Oracle yet as no one has stepped forward to do it. I have been using Subsonic 2.2 with Oracle for months now and find that it works very well.

SubSonic does indeed work with Oracle. Go here for a sample configuration for SubSonic 2.x using ODP.NET or here to see a screencast on configuring SubSonic 3.

Scott,
Recently some developers have teamed-up to offer Oracle support (using Oracle's ODP.NET) for Subsonic 3.x, using the T4 Visual Studio template database provider system. Please search Github.com for Oracle/Subsonic, or my link, http://github.com/mabraham1/LINQ2Oracle
Also, I've posted the template provider on the SubsonicProject site, as follows:
subsonicproject.com/docs/File:OracleTemplateProviderExample.RAR
Please rename the RAR to ZIP once downloaded (had trouble uploading a ZIP file).
Hope this helps!
Mark

Related

Visual Studios .NET 4 - adding Oracle Database as Data Source - Warnings about OracleDataAdatper deprecated

When I add an Oracle Database as a Data Source to my project, the automatically generated code in the TableAdapter section is uses System.Data.OracleDataAdapter which is obsolete.
Following the documentation explains that you should use the third party Oracle software (ODAC). Given that the code is autogenerated, I am confused.
Am I missing something here?
Possible Solutions:
I could use .NET 3.5 for my Data Access Layer
Ignore the warnings
Manually Create Table Adapters
Something I am missing?
The solution is to use Oracle Developer Tools for Visual Studios. Add the Data Source in the same way as before (except the form now looks different as a result of the newly installed add on).

SQLite LINQ to SQL

I'm new to use Linq to SQL. I've read that the first step to use it - you need to create "The Object Model". It is simple for MS SQL databases. But I use SQLite and I havent't found tool to create it.
I've tried DbLinq and MONO but the first tool is too old and work only with .NET Framework 3.5 and the second tool doesn't have database add-in in windows version.
How to create this model in SQLite? Thanks.
LINQ to SQL does not work with SQLite out of the box, only SQL Server and SQL Server Compact. You must use DbLinq or maybe use Entity Framework instead (if you are brave - http://erikej.blogspot.dk/2014/11/using-sqlite-with-entity-framework-6.html )

SubSonic Oracle Provider

I'm all around the net trying to figure which is the best currently available subsonic 3 provider for Oracle.
Any ideas?
As far as I know, my fork on GitHub is still the "best" (or most complete) for use with Oracle ODP.NET.
https://github.com/rally25rs/SubSonic-3.0
https://github.com/rally25rs/SubSonic-3.0-Templates
(specifically OracleDataProvider.ttinclude)
The stuff in my fork was slated to go into the next major release of SubSonic, but the entire project sort of lost steam, and development has pretty much stopped at this point, so a pull request was never made to get the Oracle and IBM DB2 support put back into the "main" SubSonic project.
However, the stuff that is in my fork, I used for over a year in a production application, before we moved off Oracle, so it definitely works.
It has been a while since I pulled any changes from the main SubSonic repository, so there might be bug fixes or other template changes in the main repositories that aren't in my fork.

MVC3 with Npgsql and Entity Framework and .Net Framework 4

Well I would like to know if NpgSQL supports .NET framework 4 with EntityFramework, as I tried to use it with framework 4 and Microsoft.Data.Entity.CTP (code first approach) in my MVC3 application and I found no success unfortunately.
Also if any one could lead me to any posts or links on using ADO.NET in MVC3 instead of EntiyFramework would be really helpful.
Any help would be really appreciated.
Out of box no. There is some workaround with PostgreSQL and EF, but I gave up after many attempts to force it to work. I use Telerik OpenAccess ORM. For PostgreSQL is free because database is also free. It's work with every major RDBMS. Support for Code first approach, and also database first approach (reverse enginering). In last version there is also Perfomance and tuning tool! Excellent product.
Here is link
When you asked the question I think the answer would have been no. The answer is probably irrelevant to you now but for others ...
Now I would have to say the answer is yes. I have a MVC3 (then upconverted to MVC4) project that uses code first entity framework and npgsql.
I used EF6b2 and npgsql 2.0.12.
Setting the web.config entityframework section, DbProviderFactories section and connectionstring correctly was the part the got it working. I also included the security and npgsql dlls in the project.
See
https://stackoverflow.com/a/12033304/25372

How to generate database class files with SubSonic 3?

I've been using SubSonic (ActiveRecord) for a couple of years. I've been waiting until a few of the bugs in 3.0 were fixed before downloading the newest release and upgrading my few sites that use SubSonic to 3.0. I'm currently using 2.2 on these sites. I'm working on a new site and wanted to use 3.0 to get a grip on the new updates before going back and updating my existing sites to 3.0.
However, I'm stuck and the old SubSonic site with forums and useful help documents seemed to have all changed and there's nothing there that I can find to answer my basic questions.
How can I generate database class files with SubSonic 3?
In version 2.x, I used the SubCommander tool integrated with Visual Studio and it just took a click of a menu choice to regenerate all of the class files. Now, there's just a single binary .dll file and no information on how to actually generate my class files.
This question is posed for a new database and new web site, but I have several other existing web sites/databases that I'd like to upgrade. Is there a document on how to transition from SubSonic 2 to SubSonic 3? Preferably, a document that takes into consideration existing implementations.
There isn't a document on transitioning from 2 to 3 although I think it'd be a great thing for someone to write. However you should find answers on how to get started from the docs site.
In particular it sounds like you should have a look at:
The 5 minute ActiveRecord demo
Using SubSonic 3 ActiveRecord
ActiveRecord overview
This question should also have answers to some of the pitfalls when get started with SubSonic 3 and t4.

Resources