X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=web%2Fado-net;h=0095d79ef79996374030641fce45c5c8a01272ac;hb=a17adea98d0e3b4b130ba2d3c65521c26e7f32a7;hp=87d2f1f86d213356bf1c31afed86d4b785fa5281;hpb=506ccff8d59db68b1b5f04bd928d895f5c520bd7;p=mono.git diff --git a/web/ado-net b/web/ado-net index 87d2f1f86d2..0095d79ef79 100644 --- a/web/ado-net +++ b/web/ado-net @@ -1,285 +1,198 @@ * ADO.NET - The coordinator for the ADO.NET implementation is Rodrigo Moya, with - the collaboration of Daniel - Morgan. - -* Action plan - - The current plan to implement ADO.NET is as follows: - - Step 1: SqlClient: - - - - Step 2: OleDB: - - - Step 3: System.Data.SqlClient Providers: +** Data Access in Mono + + - +** Bugs and Feature Requests - Step 4: Other System.Data providers: + - We are also able to do simple aggregate functions, - ie, count(), sum(), avg(), min(), and - max() in a simple SELECT SQL query using ExecuteSecalar() now. +** ADO.NET Data Providers - We are also able to retrieve data with a simple SELECT SQL query - using ExecuteReader() which returns a SqlDataReader. We are able to - GetSchemaTable() get the meta data about the table columns. We are able - to Read() to get each row from the result set. We are able to get - String data (char, bpchar (character), text, varchar), Int16 (int2 or smallint), - and Int32 (int4 or integer), Int64 (int8 or bigint). More data types will - follow later on. - - Parameters are not working nor has stored procedures been tested - but they will be. +

Mono has many ADO.NET Data Providers to get you connected: + +

+ +

External Projects that have created ADO.NET Providers that work on Mono: + +

+ +** Tools + +

Some tools that can be used for ADO.NET and other technologies (ASP.NET, XML, etc). + +

+ +** Extra Classes in Mono ADO.NET + +

An ADO.NET Provider Factory + was created by Brian Ritchie. The + Provider Factory is a way to dynamically create + connections, commands, parameters, and data adapters based on configuration + information. - A lot of functionality in System.Data is missing, but the infrastructure is - starting to come together. - - To compile that test program, you need: - - On Linux - +** Database Access from ASP.NET

-* Testing - - In order to test System.Data.SqlClient, you will need to have - access to a remote PostgreSQL DBMS, or you will have to install - one locally. PostgreSQL is the DBMS used for the initial - implementation of System.Data.SqlClient. - - Why? Because it is open source, has a client - library that is easy to use, PostgreSQL is easy to install - using the Cygwin install program, not difficult to setup after - installation, and it runs under: Linux, - Windows (via cygwin and ipc-daemon), Unix, and - others. This allowed us to create the - System.Data functionality in Mono much quicker. +** Testing + + - To compile the PostgresTest.cs program, do: - mcs PostgresTest.cs -r System.Data - - To run using mint, do: - mint PostgresTest.exe - - To run using mono, do: - mono PostgresTest.exe - - You should get something like: - -Administrator@DANPC ~/mono/mcs/class/System.Data/Test -$ mcs PostgresTest.cs -r System.Data - -Administrator@DANPC ~/mono/mcs/class/System.Data/Test -$ mint PostgresTest.exe - Postgres provider specific tests... - - Drop table: -Error (don't worry about this one) - Create table with all supported types: -OK - Insert values for all known types: -OK - Select values from the database: - Get Schema. -dt.Columns.Count: 6 -* Column Name: int2_value - MaxLength: 2 - Type: System.Int16 -* Column Name: int4_value - MaxLength: 4 - Type: System.Int32 -* Column Name: bigint_value - MaxLength: 8 - Type: System.Int64 -* Column Name: char_value - MaxLength: -1 - Type: System.String -* Column Name: varchar_value - MaxLength: -1 - Type: System.String -* Column Name: text_value - MaxLength: -1 - Type: System.String -Row 0: - Col 0: int2_value - -22 - Col 1: int4_value - 1048000 - Col 2: bigint_value - 123456789012345 - Col 3: char_value - This is a char - Col 4: varchar_value - This is a varchar - Col 5: text_value - This is a text -Rows: 1 -Clean up... - Drop table... -OK -