DBLinqOracleTest

string connStr = @"Data Source=XE;User ID=AI;password=sa";
            OracleConnection conn = new OracleConnection(connStr);
            Ai dt = new Ai(conn);
            var result = from t in dt.Platform
                         join c in dt.Car
                         on  t.PlatID equals c.PlatID
                         where t.PlatID ==33
                         select c;
            foreach (var item in result)
            {
                Console.WriteLine(item.CarName);
            }

            decimal? t1 =0, t2;
            dt.Procedure1(t1,out t2);
            Console.WriteLine(t2);
           
            string name;
            dt.SlEcTallCar(out name);
            Console.WriteLine(name);

 

posted @ 2013-04-09 04:03  louiskoo  阅读(155)  评论(0编辑  收藏  举报