.NET Datatables how to add support for custom database ?

.NET Datatables how to add support for custom database ?

GuillaumeBoucherGuillaumeBoucher Posts: 4Questions: 3Answers: 0

Hi,

we use a nosql database : http://www.litedb.org/ to store our data

how can i customize the .net datatables because it look that there is no provider for this kind of database in "Database.cs"

        switch (_DbType)
        {

            case "mysql":
                return "MySql.Data.MySqlClient";

            case "oracle":
                return "Oracle.ManagedDataAccess.Client";

            case "postgres":
                return "Npgsql";

            case "sqlite":
                return "System.Data.SQLite";

            case "liteDB":                    
                return "???";

            case "sqlserverce":
                return "System.Data.SqlServerCe";

            case "azure":
            case "sqlserver":
                return "System.Data.SqlClient";

            default:
                throw new Exception("Uknown database type specified");
        }
    }

thnak you very much if you can answer me

Best regards

This discussion has been closed.