Hi guys !
I am newbie, I have downloaded oracle 11g release 2 but i don't know where to start and how to connect C# program to database. I want to write simple program of username and password in which I it stored in database. And also maps the username and password into database to check whether is correct or not.

using System;
namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
            string username;
            string password;

            Console.WriteLine("Enter username : ");
            username = Console.ReadLine();
            Console.WriteLine("Enter password :");
            password = Console.ReadLine();

            if (username == "abc" && password == "123")
                Console.WriteLine("\nWelcome " + username);
            else
                Console.WriteLine("\nEither username or password was incorrect !");

        }
    }
}

Please anyone help me to create this programe in C#. I am really curious about it. Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.