-
Notifications
You must be signed in to change notification settings - Fork 3
/
XpoDataStoreProxyProvider.cs
37 lines (35 loc) · 1.23 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
using DevExpress.Xpo.Metadata;
using DevExpress.ExpressApp.Xpo;
namespace AspNetCore.Module.Services;
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;
}
}