A Data Session is a provider dependent component which executes select, inserts, updates and delete.

Instantiate a DataSession

//provider for MS-SQL
Anito.Data.SqlClient.SqlProvider provider = new Anito.Data.SqlClient.SqlProvider();
provider.ConnectionString = "ConnectionString";
ISession session = new DataSession(provider);

Creating a DataSession using ProviderFactory

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

Last edited Apr 5, 2011 at 5:25 AM by mdcuesta, version 2

Comments

No comments yet.