using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.Objects; using System.Data.EntityClient; using System.Data.Entity; using System.ComponentModel; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { try { using (Entities ctx = new Entities()) { var OracLinq = from e in ctx.AM_GI_COUNTRIES where e.PK_CODE == 42 select e; Console.WriteLine("LINQ to Entites Result"); foreach (var result in OracLinq) { Console.WriteLine("COD:" + result.PK_CODE); } Console.WriteLine(); Console.ReadLine(); } } catch (Exception ex) { Console.WriteLine(ex.Message.ToString()); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)