Esempio n. 1
0
 public static IDataContext Instance(string connectionStringName)
 {
     return(new PetaPocoDataContext(connectionStringName, DataProvider.Instance().ObjectQualifier));
 }
Esempio n. 2
0
 // dynamically create provider
 private static void CreateProvider()
 {
     objProvider = (DataProvider)Reflection.CreateObject( "data" );
 }
Esempio n. 3
0
        public static IDataContext Instance()
        {
            var defaultConnectionStringName = DataProvider.Instance().Settings["connectionStringName"];

            return(new PetaPocoDataContext(defaultConnectionStringName, DataProvider.Instance().ObjectQualifier));
        }