Start New Discussion within our Databases Community

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);
                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!

This article has been dead for over six months. Start a new discussion instead.