Exemplo n.º 1
0
        public void TestMethod1()
        {
            Employee[] employees = new Employee[]
            {
                new Employee { Name=  "a" },
                new Employee {Name= "b" }
            };

            Employee A = Array.Find(employees, (e) => e.Name == "a");
            employees.Where(e => e.Name == "b");
            DataFactoryContext context = new DataFactoryContext();
           // IEnumerable<Employee> query = context.Employee.Where(c => c.Name == "Esteban");
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            using (var context = new DataFactoryContext())
            {
                var image = from i in context.Cut
                            select i.ImagesCut;
                Console.WriteLine(image.ToString());
                foreach (var item in image)
                {
                    Console.WriteLine("Tipo "+ item.GetType());
                    Console.WriteLine("Name " + item.Select(c => c.Name));
                }
                Console.WriteLine(image.GetType());
            }

            Console.ReadKey();
        }
Exemplo n.º 3
0
        public void TestImage()
        {
            using (var context = new DataFactoryContext())
            {
                var ima = from i in context.Cut
                          where i.Id == 4
                          select i.ImagesCut;

                foreach (var item in ima)
                {
                    Debug.WriteLine("" + "TTTY " + item.Select(c => c.Name));
                }
              //  Debug.Write(ima.ToString() + "TTTY ");
                //Console.WriteLine(ima);
            }
            Assert.AreEqual(1, 1);
            Debug.WriteLine("Fin del metodo");
        }