xavehoo
/
XAF_how-to-prevent-altering-the-legacy-database-schema-when-creating-an-xaf-application-e1150
Public
forked from DevExpress-Examples/xaf-how-to-prevent-altering-the-legacy-database-schema-when-creating-an-xaf-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
XpoDataStoreProxyProvider.cs
38 lines (37 loc) · 1.15 KB
/
XpoDataStoreProxyProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using DevExpress.Xpo.Metadata;
using DevExpress.ExpressApp.Xpo;
namespace WinWebSolution.Module {
public class XpoDataStoreProxyProvider : IXpoDataStoreProvider {
private XpoDataStoreProxy proxy;
public XpoDataStoreProxyProvider() {
proxy = new XpoDataStoreProxy();
}
public DevExpress.Xpo.DB.IDataStore CreateUpdatingStore(bool allowUpdateSchema, out IDisposable[] disposableObjects) {
disposableObjects = null;
return proxy;
}
public DevExpress.Xpo.DB.IDataStore CreateWorkingStore(out IDisposable[] disposableObjects) {
disposableObjects = null;
return proxy;
}
public DevExpress.Xpo.DB.IDataStore CreateSchemaCheckingStore(out IDisposable[] disposableObjects) {
disposableObjects = null;
return proxy;
}
public XPDictionary XPDictionary {
get { return null; }
}
public string ConnectionString {
get { return null; }
}
public bool IsInitialized {
get;
private set;
}
public void Initialize(XPDictionary dictionary, string legacyConnectionString, string tempConnectionString) {
proxy.Initialize(dictionary, legacyConnectionString, tempConnectionString);
IsInitialized = true;
}
}
}