From: DataLayer D. L. <dat...@li...> - 2006-11-23 17:19:42
|
Hola a todos, por hoy vamos a escribir en espa=F1ol para que no se nos vaya= a escapar nada de esta discusi=F3n. Hubo un "peque=F1o" problema de falta de comunicaci=F3n entre Manuel y nosotros, creo que nunca mandamos un correo a= la lista diciendo que era lo que est=E1bamos modificando y Manuel estaba modificando lo mismo sin darnos cuenta, as=ED que cada grupo en esta caso Manuel, Rodrigo-V=EDctor-Carlos y Julio-C=E9sar vamos a tener que mandar un reporte detallado de los cambios que hemos hecho en cada uno de los archivo= s por proyecto y los nuevos archivos que hemos creado. Aqu=ED va el de Rodrigo-V=EDctor-Carlos: =B7 DataLayerUtilites o *Configuration.cs*: Se encarga de manipular el archivo XML de configuraci=F3n para la DataLayer, el cual esta dividido en 2 partes, Providers y DataSources, esta clase se encarga de leer y desencriptar el archivo as=ED como tambi=E9n de encriptar y guardarlo. Tambi=E9n se impleme= nto un mecanismo de validaci=F3n por medio de XSD para verificar que la estructura del archivo sea la correcta. o *Provider.cs*: Es una abstracci=F3n para cada uno de los provedores que= se encuentran en el archivo de configuraci=F3n, maneja 2 datos: Name y FullyQualifiedName, este =FAltimo se utiliza para crear el DbProviderFactor= y correspondiente en .NET 2.0 o para hacer un switch y seleccionar el Provide= r correspondiente en el caso de .NET 1.1. o *DataSourceInfo.cs*: Es la abstracci=F3n de los datos necesarios para crear un DataSource, se manejan el nombre del DataSource, el nombre de proveedor (que debe existir en el archivo de configuraci=F3n) y el ConnectionString, este =FAltimo se maneja como una cadena puesto que como pretendemos soportar cualquier data provider instalado en el sistema no podemos conocer de antemano el procedimiento para generar el connection string como anteriormente se hacia. =B7 DataServices o *DataSourceManager.cs*: Se elimino el manejo directo del archivo XML de configuraci=F3n y se sustituyo por una instancia de la clase Configuration. Tambi=E9n se modifico el procedimiento para crear los DataSources para que soportora la creaci=F3n de un GenericDataSource que representa un wrapper p= ara el DbProviderFactory de .NET 2.0. o *DataSource.cs*: Se modifico el constructor para que en vez de requerir usuario, password, host y base de datos, solamente requiriera el connection string directamente. =B7 DataLayerConfigurationUI o Este proyecto es la interfaz de usuario para adminstrar el archivo de configuraci=F3n del DataLayer, nos permite modificar providers y datasource= s, as=ED como ver los providers instalados en la maquina y agregarlos a nuestr= a configuraci=F3n. Espero que con eso sea suficiente para entender los cambios que realizamos, cualquier duda mandarla a la lista para contestarla. Y esperamos que sea facil unir los cambios realizados por Manuel y por nosotros. Saludos! |