The packages can be installed using the Package Manager Console window.
If you wish to work only with raw-SQLs.
> Install-Package AmpScm.RepoDbIt supports all kinds of RDBMS data providers.
If you wish to work with SQL Server.
> Install-Package AmpScm.RepoDb.SqlServerOnce installed, call the globalized setup method to initialize all the dependencies for SQL Server.
GlobalConfiguration
.Setup()
.UseSqlServer();For the users prior the version 1.13.0, use the bootstrapper code below.
RepoDb.SqlServerBootstrap.Initialize();Or, if you are to work with the bulk operations.
> Install-Package AmpScm.RepoDb.SqlServer.BulkOperationsIf you are working with this package, you are required to bootstrap the connection object on the startup.
var dbSetting = new SqlServerDbSetting();
DbSettingMapper
.Add<System.Data.SqlClient.SqlConnection>(dbSetting, true);
DbHelperMapper
.Add<System.Data.SqlClient.SqlConnection>(new SqlServerDbHelper(), true);
StatementBuilderMapper
.Add<System.Data.SqlClient.SqlConnection>(new SqlServerStatementBuilder(dbSetting), true);Or, you can replicate the actual SqlServerBootstrap class implementation and attach it to your solution. Then, call the local class initializer method explicitly.
If you wish to work with PostgreSQL.
> Install-Package AmpScm.RepoDb.PostgreSqlOnce installed, call the globalized setup method to initialize all the dependencies for PostgreSql.
GlobalConfiguration
.Setup()
.UsePostgreSql();For the users prior the version 1.13.0, use the bootstrapper code below.
RepoDb.PostgreSqlBootstrap.Initialize();Or, if you are to work with the bulk operations.
> Install-Package AmpScm.RepoDb.PostgreSql.BulkOperationsThere are 2 packages available for MySQL.
If you wish to work with RepoDb.MySql.
> Install-Package AmpScm.RepoDb.MySqlOnce installed, call the globalized setup method to initialize all the dependencies for MySQL.
GlobalConfiguration
.Setup()
.UseMySql();If you wish to work with RepoDb.MySqlConnector.
> Install-Package AmpScm.RepoDb.MySqlConnector;Once installed, call the globalized setup method to initialize all the dependencies for MySQL.
GlobalConfiguration
.Setup()
.UseMySqlConector();There are 2 packages available for SQLite.
If you wish to work with RepoDb.SQLite.System.
> Install-Package AmpScm.RepoDb.SQLite.SystemOnce installed, call the globalized setup method to initialize all the dependencies for SQLite.
GlobalConfiguration
.Setup()
.UseSQLite();If you wish to work with RepoDb.Sqlite.Microsoft.
> Install-Package AmpScm.RepoDb.Sqlite.MicrosoftOnce installed, call the globalized setup method to initialize all the dependencies for SQLite.
GlobalConfiguration
.Setup()
.UseSqlite();Please visit our documentation page to learn more about this library.