This project is read-only.

Provider Factory

creates a provider instance based on the given provider name, provided that the provider is referenced.

Available Provider names:
  • Anito.Data.SqlClient
  • Anito.Data.MySqlClient
  • Anito.Data.SqliteClient

Creating a Provider Instance using ProviderFactory

string providerName = "Anito.Data.MySqlClient";
IProvider provider = ProviderFactory.GetProvider(providerName);

Creating a session out of a provider

string providerName = "Anito.Data.SqliteClient";
IProvider provider = ProviderFactory.GetProvider(providerName);
DataSession session = new DataSession(provider);

Last edited Mar 29, 2011 at 6:00 AM by mdcuesta, version 7

Comments

No comments yet.