static CodeCentralExampleInMemoryDataStoreProvider()
        {
            string providerKey = Guid.NewGuid().ToString();

            fConnectionString = String.Format("XpoProvider={0}", providerKey);
            fdataSet          = new DataSet();
            DataStoreBase.RegisterDataStoreProvider(providerKey, CreateProviderFromString);
        }
 public new static void Register()
 {
     try {
         DataStoreBase.RegisterDataStoreProvider(XpoProviderTypeString, new  DataStoreCreationFromStringDelegate(CreateProviderFromString));
     } catch (ArgumentException e) {
         Tracing.Tracer.LogError(e);
         //Tracing.Tracer.LogText("A connection provider with the same name ( {0} ) has already been registered", XpoProviderTypeString);
     }
 }
 static CodeCentralExampleInMemoryDataStoreProvider()
 {
     try {
         dataSet = new DataSet();
         DataStoreBase.RegisterDataStoreProvider(XpoProviderTypeString, new DataStoreCreationFromStringDelegate(CreateProviderFromString));
     } catch {
         throw new Exception(string.Format("Cannot register the {0}", typeof(CodeCentralExampleInMemoryDataStoreProvider).Name));
     }
 }
 public static void InitXpo(string connectionString, string login, string password)
 {
     RegisterEntities();
     InitSecurity();
     XpoDefault.RegisterBonusProviders();
     DataStoreBase.RegisterDataStoreProvider(WebApiDataStoreClient.XpoProviderTypeString, CreateWebApiDataStoreFromString);
     ObjectSpaceProvider = new SecuredObjectSpaceProvider(Security, connectionString, null);
     UpdateDataBase();
     LogIn(login, password);
     XpoDefault.Session = null;
 }
示例#5
0
 public static void Register()
 {
     DataStoreBase.RegisterDataStoreProvider(PostgreSqlConnectionProvider.XpoProviderTypeString,
                                             new DevExpress.Xpo.DB.Helpers.DataStoreCreationFromStringDelegate(CreateProviderFromString));
 }
示例#6
0
 static void ConfigureXpoForDevEnvironment()
 {
     XpoDefault.RegisterBonusProviders();
     DataStoreBase.RegisterDataStoreProvider(WebApiDataStoreClient.XpoProviderTypeString, CreateWebApiDataStoreFromString);
 }
 public new static void Register()
 {
     //HACK review this link https://supportcenter.devexpress.com/ticket/details/BC4261/data-access-library-connection-provider-registration-has-been-changed
     DataStoreBase.RegisterDataStoreProvider(XpoProviderTypeString, CreateProviderFromString);
     DataStoreBase.RegisterDataStoreProvider(XpoProviderTypeString, CreateProviderFromConnection);
 }
 public static void Register()
 {
     //var store = CreateProviderFromString;
     DataStoreBase.RegisterDataStoreProvider(XpoProviderTypeString, CreateProviderFromString);
 }