Julián Enrique Verdezoto Celi. Conceptos Generales LINQ en objetosDEMO LINQ y XMLDEMO LINQ y SQLDEMO.

Slides:



Advertisements
Presentaciones similares
Cable & Wireless Panamá. Entrar a Inicio, Programas y buscar Windows Live.
Advertisements

Los sustantivos y artículos en español.
Como Configurar el Internet
Windows Mobile 1. Configurar una cuenta de Correo Personal Configurar Yahoo! Microsoft Confidential2 Inicio Fin.
3/24/2017 3:59 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2006 Microsoft Corporation. All rights reserved.
3/24/2017 4:00 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
3/24/2017 4:02 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Desarrollo en SharePoint 2010: Modelo de Objetos en Cliente + API REST Gustavo Vélez Solutions Manager en Avanade Juan Carlos González.
PLEASE READ (hidden slide) This template uses Microsofts corporate font, Segoe Segoe is not a standard font included with Windows, so if you have not.
De BDC a BCS Gustavo Velez Overview El problema y la solución Arquitectura Listas Externas (SharePoint Designer) Visual Studio 2010.
Quality Management (J07) Overview Argentina
Query Direcciones SELECT Nombre, Apellido, Ciudad FROM Direcciones;
Bases de Datos Espaciales SPATIAL QUERY LANGUAGES
SQL Server 2005 ADO.NET Javier Fernández Rodríguez Noviembre 2005, Sevilla Javier Fernández Rodríguez Noviembre 2005, Sevilla.
Programando con Hilos POSIX* Intel Software College.
Programación con OpenMP* Intel Software College. Copyright © 2006, Intel Corporation. All rights reserved. Intel and the Intel logo are trademarks or.
Virtual Desktop Infrastructure (VDI) from Microsoft
3/29/ :02 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Mario Cortés Flores Consultor SharePoint en Renacimiento Coordinador SUGES Coautor de:
Procedimientos Almacenados y Disparadores
Database Mounting Tool (Dsamain.exe) Mediante esta nueva herramienta y una de las mejoras de la nueva versión de Ntdsutil… podemos generar y examinar.
3/29/2017 1:27 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
SQL Base de Datos LENGUAJES DE CONSULTA AR y CR no pueden ser tomados como base para implementar porque: Poseen sintaxis compleja No permiten.
LOW COST COMPUTER SYSTEM for QUALITY EVALUATION and PRESERVATION of GRAINS STORED in POLYMER BAGS Dra. Claudia Pons Researcher CONICET – LIFIA - CAETI.
Introducción a la nueva consola de administración de Exchange 2007 Angel Sánchez Clemares Ingeniero de Soporte David Cervigón IT.
Desarrollo Entrega continua Rodrigo Corral
Experiencias de usuario y aplicaciones ricas en Internet Silverlight: Arquitectura Herramientas de desarrollo Nuevo: Silverlight 3.0 Audio y video Experiencias.
1 SQL Server 2008 : Service Pack 1 SQL-FEST (Spain) Sep 23 rd 2008 Marcos Celada SQL Server Support Engineer Microsoft
Entender qu é es cloud computing Cloud computing seg ú n Microsoft: Azure.NET Services SQL Services Live Services.
Vendiendo Microsoft Office 2010 Office 2010 Licenciamiento Office 2010 Licenciamiento Pablo Rovira Jefe de Producto Pablo Rovira.
BITLOCKER Fernando Guillot Paulo Dias IT Pro Evangelist Microsoft
Antonio Gámir TSP – Windows Client Microsoft Ibérica.
Su Negocio Conectado. VisibilidadVisibilidad ColaboraciónColaboración PlanificaciónPlanificación EjecuciónEjecución Build Connections.
Antonio Gámir Optimized Desktop Specialist Microsoft Ibérica.
Clustered Hard Disk Drives Cold data.
para desarrolladores Minimizar el cambio Concentrarse en estabilidad, confiabilidad y rendimiento. Ayudar a mejorar la productividad Reducir la curva.
SOA conference. Qué es WCF Fundamentos de la Arquitectura WCF Adaptadores BizTalk WCF Novedades en BizTalk Demo.
Service Pack 3 SQL Server 2005 Marcos Celada Microsoft Support Services
David Cervigón Luna IT Pro Evangelist Microsoft Ibérica
Se trata de un nuevo tipo de Controlador de Dominio No puede escribir en su base de datos fruto de peticiones externas No se le permite tener replicación.
Las PyMEs son máquinas de crecimiento PyMEs representan hasta un 75% de todos los empleos en algunas economías (PyMEs) con conocimientos en tecnología.
© 2006 Microsoft Corporation. All rights reserved.
A demanda elástica De amplio Acceso Servicios medibles Recursos mancomunados.
Hogar y Micro Empresas Pequenas Empresas Medianas Empresas Enterprise 1-4 PCs 50+ PCs PCs PCs OEM Microsoft Open License Microsoft Open Value.
Alejandro García Sánchez Readiness Champion.. Licenciamiento para Pequeñas y Medianas Empresas Como Elegir el licenciamiento Correcto Preguntas y Respuestas.
Overview Alejandro Ponicke Asesor de Comunidades IT Microsoft Cono Sur.
Silverlight Pablo Michelis Gerente de Relaciones Académicas Microsoft Cono Sur.
WINDOWS 7 FIN DE SOPORTE. ¿Qué es el fin de soporte? En Microsoft existe el compromiso de proporcionar productos seguros. Nuestra política mundial de.
Autenticación David Martos Arquitecto de Software. Spenta Consulting
Isabel Gómez Desarrollo & Plataforma Microsoft Ibérica.
Pasos a seguir para asociar un MCP o una persona a la empresa
 Nicolás Padula Core Technologies Consultant  Maximiliano Stibel Core Technologies Consultant.
Vendiendo Microsoft Office 2010 Office 2010 Presentación del producto Office 2010 Presentación del producto Pablo Rovira Jefe de.
Crear Referencias Febrero 10, Ingresar al portal Ingresar a la siguiente url: Ya que se haya entrado a la URL.
¿Cómo crear y lanzar la encuesta de satisfacción? (Csat) Febrero 17, 2011.
¡Bienvenido a tu nuevo Office!. ¡Instalá tu Office en todos tus dispositivos móviles! Colaboración en línea de tus archivos con todos tus compañeros de.
The .NET Language Integrated Query Framework
Office365 Telefónica España Dirección de Marketing de Empresas.
Microsoft Sync Framework, el futuro
Bienvenidos.
Microsoft Virtual Academy
The .NET Language Integrated Query Framework
24 Es el 6 de noviembre. Más Números
© 2007 Microsoft Corporation. All rights reserved
Capítulo 12 El Futuro es tuyo 6/2/ :54 PM
Optimización de SQL Server para IOT
Streaming de datos con Power BI
Windows Server Management Marketing
(Nos agrada su presencia en este lugar)
Transcripción de la presentación:

Julián Enrique Verdezoto Celi

Conceptos Generales LINQ en objetosDEMO LINQ y XMLDEMO LINQ y SQLDEMO

LINQ (Language Integrated Query) API de C# 3.0 focalizada en el acceso a datos. Múltiples origenes de datos. Extensibilidad SQL, XML y Objetos. Facilita relación datos objetos

Integración nativa con los lenguajes que facilitan la productividad y la detección de errores (Validación Sintáctica). Tipado anónimo para proyecciones en todo tipo de colecciones. Fuertemente Tipado.

Operadores de consulta pueden usarse en cualquier colección. Select, from, where, group by, join, etc. Sentencias para ordenamiento de datos.

OPERADORES DE CONSULTA var numbers = new int[] {1,2,5,8,12,13,14,15,17,21,23}; var results = from c in numbers where (c % 2) == 0 select c;

SENTENCIAS PARA ORDENAMIENTO static IEnumerable CrearEstudiantes() { return new List { new Estudiante { Nombre = "Juan", Carrera = "Derecho" }, new Estudiante { Nombre = "Ana", Carrera = "Sistemas" }, new Estudiante { Nombre = "Jenny", Carrera = "Turismo"} }; } var results = from c in CrearEstudiantes() where c.Carrera == "Sistemas“ orderby c.Nombre ascending select c;

Posee una API para XML sencilla y rápida. Facilita el trabajo con documentos XML, tanto de entrada como de salida.

XML consultas var doc = XDocument.Load(Server.MapPath("Customers.xml")); var results = from c in doc.Descendants("customer") where c.Element("city").Value == “London" select c;

XML creación de estructuras XElement transformedResults = new XElement("Clientes", from cust in results select new XElement("Contacto", new XAttribute("ID", cus.Element("id").Value), new XAttribute("Nombre", cus.Element("name").Value), new XAttribute("Ciudad", cus.Element("city").Value), new XAttribute("Pai", cus.Element("country").Value)));

Mapea una estructura SQL a una clase.Net Traduce una sentencia LINQ a SQL. Soporta operaciones de tipo insert, update y delete. DataContext, BD fuertemente tipadas. Soporte para jerarquías y relaciones. Chequeos en tiempo de compilación.

AplicattionAplicattion Dlinq(ADO.NET)Dlinq(ADO.NET) SQLServerSQLServer from c in db.Customers where c.City = “London” select new {c.Name, c.Phone } new {c.Name, c.Phone } from c in db.Customers where c.City = “London” select new {c.Name, c.Phone } new {c.Name, c.Phone } select Name, Phone from customers where city = ‘London’ select Name, Phone from customers where city = ‘London’ LINQ QueryObjects SubmitChanges() SQL QueryRowsSQL or Stores Procedures Services: Change tracking Change tracking Concurrency control Concurrency control Object identity Object identityServices: Change tracking Change tracking Concurrency control Concurrency control Object identity Object identity

DLINQ Designer

Relaciones entre entidades private System.Nullable _VEH_KILOMETRAJE; private string _VEH_COMENTARIO; private EntitySet _VHC_PARTEs; private EntityRef _VHC_MODELO; private EntityRef _VHC_PROPIETARIO;

Consulta grvVehiculos.DataSource = from veh in Vehiculos.VHC_VEHICULO join pro in dsPropietarios.VHC_PROPIETARIO on veh.PRP_ID equals pro.PRP_ID join mod in dsMarcas.VHC_MODELO on veh.MOD_ID equals mod.MOD_ID select new { VEH_ID = veh.VEH_ID, MAR_NOMBRE = mod.VHC_MARCARow.Mar_Nombre, MOD_NOMBRE = mod.MOD_NOMBRE, PRP_NOMBRES_APELLIDOS = pro.PRP_NOMBRES_APELLIDOS, VEH_ANIO_FABRICACION = veh.VEH_ANIO_FABRICACION, VEH_COLOR = veh.VEH_COLOR, VEH_CIUDAD = veh.VEH_CIUDAD, VEH_PRECIO = veh.VEH_PRECIO, VEH_KILOMETRAJE = veh.VEH_KILOMETRAJE, EXTRAS = veh.GetVHC_PARTERows().OrderBy(p => p.VHP_PARTE), NUMEXTRAS = veh.GetVHC_PARTERows().Count()};

Inserción VehiculosDataContext objVeh_DB = new VehiculosDataContext(); VHC_VEHICULO insVehiculo = new VHC_VEHICULO(); insVehiculo.MOD_ID = v.MOD_ID; insVehiculo.PRP_ID = (int)v.PRP_ID; insVehiculo.VEH_COLOR = v.VEH_COLOR; insVehiculo.VEH_CIUDAD = v.VEH_CIUDAD; insVehiculo.VEH_PRECIO = v.VEH_PRECIO; insVehiculo.VEH_KILOMETRAJE = (long)v.VEH_KILOMETRAJE; insVehiculo.VEH_COMENTARIO = v.VEH_COMENTARIO; objVeh_DB.VHC_VEHICULOs.Add(insVehiculo);

Actualización VehiculosDataContext objVeh_DB = new VehiculosDataContext(); var uptVehiculo = objVeh_DB.VHC_VEHICULOs.Single(p => p.VEH_ID == v.VEH_ID); uptVehiculo.MOD_ID = v.MOD_ID; uptVehiculo.PRP_ID = (int)v.PRP_ID; uptVehiculo.VEH_ANIO_FABRICACION = v.VEH_ANIO_FABRICACION; uptVehiculo.VEH_COLOR = v.VEH_COLOR; uptVehiculo.VEH_CIUDAD = v.VEH_CIUDAD; uptVehiculo.VEH_PRECIO = v.VEH_PRECIO; uptVehiculo.VEH_KILOMETRAJE = (long)v.VEH_KILOMETRAJE; uptVehiculo.VEH_COMENTARIO = v.VEH_COMENTARIO;

Eliminación VehiculosDataContext objVeh_DB = new VehiculosDataContext(); objVeh_DB.VHC_VEHICULOs.Remove( objVeh_DB.VHC_VEHICULOs.Single( p => p.VEH_ID == v.VEH_ID));

Soporta las funciones y Stored Procedures.

Reutilización de SPs objVeh_DB.InsertarMarcas(strNombre, strPais); objVeh_DB.ActualizarMarcas(intMarId, strNombre, strPais);

msdn2.microsoft.com/netframework/aa aspx archivo/041206/voices/LINQ_Project.mspx blogs.microsoft.co.il/blogs/bursteg/archive/ta gs/VS2008/default.aspx

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.