June 2004 - Posts

Shadowfax 1.0 is out!

It seems like nobody noticed but release 1.0 of Shadowfax (a reference architecture and framework for enterprise applications) has been posted today here http://www.gotdotnet.com/Community/Workspaces/Workspace.aspx?id=9c29a963-594e-4e7a-9c45-576198df8058. One more step towards better architected systems.
Posted by Edgar Sánchez with no comments

Oracle 10g and .NET: it just works

OK, this is sure to be really silly stuff for some of you, but as I do 9x% of my work with SQL Server, taming the Oracle beast is a real challenge for me. The very first round, filling a dataset:

using Oracle.DataAccess.Client;
...
 
    using (OracleConnection con = new OracleConnection("User Id=xyz;Password=zzzz;Data Source=orcl"))
    {
        try
        {
            OracleDataAdapter da = new OracleDataAdapter("select * from HR.EMPLOYEES", con);
            da.Fill(this.EmployeesDS.EMPLOYEES);
        }


        catch (OracleException ex)
        {
            EventLog.WriteEntry(ex.Message, EventLogEntryType.Error)
        }
    }

Here, ORCL is the Oracle instance (TNS) that I want to connect to and HR is the schema that I want to use. For this code to compile, we must make a reference to the Oracle.DataAccess assembly which lives (in the standar Oracle installation) in C:\oracle\product\10.1.0\Db_2\BIN. By the way, you need this folder in your PATH (yes, your PATH, that old Windows artifact) and read access to the folder (this is relevant to me, as I've been developing as a non-administrator since a few weeks ago, so far so good, I haven't become more productive but I feel better). This code also works as is if you use the Visual Studio 2003 Oracle Data Provider, all you have to do is change the using line and referencing the System.Data.OracleClient assembly. By the way, anybody out there has any suggestions as which data provider is better?

Posted by Edgar Sánchez with 28 comment(s)

No iterators in VB.NET 2.0?

In a forum, I read that VB.NET 2.0 there won't be an equivalent to the C# 2.0 iterators and yield keyword. Being a C# fan and not one that misses a chance of teasing my VB.NET friends (and customers), I should be happy but, somehow, this sounds weird to me, is this indeed true?
Posted by Edgar Sánchez with 1 comment(s)
Filed under:
More Posts