Exemplo n.º 1
0
 static void Main(string[] args)
 {
     using (Entities db = new Entities()) {
         var q = db.INT_INFOCONT.ToList();
         Console.WriteLine("Hola "+ q.Count());
         Console.ReadKey();
     }
 }
Exemplo n.º 2
0
        public List<vCONTRATOS> GetContrato(string Cod_Con)
        {
            List<vCONTRATOS> List = new List<vCONTRATOS>();
            using (ctx = new Entities())
            {
                var query = ctx.CONTRATOS.Where(t => t.COD_CON == Cod_Con)
                    .Select(
                        t => new vCONTRATOS
                        { 
                         COD_CON= t.COD_CON
                         //,
                         //DependenciaNec = t.DEPENDENCIA.NOM_DEP,

                        
                        }
                    );

                
            }
            
            
            return Cmanager.GetContrato(Cod_Con);

        }