示例#1
0
        public MultiDataStoreProxy(IDataStore dataStore, string connectionString,XPDictionary dictionary=null) : base(dataStore){
            if (dictionary==null)
                dictionary=XpandModuleBase.Dictiorary;

            _dataStoreManager = new DataStoreManager(connectionString);
            FillDictionaries(dictionary);
        }
示例#2
0
 public MultiDataStoreProxy(string connectionString, XPDictionary xpDictionary)
     : base(connectionString) {
     _dataStoreManager = new DataStoreManager(connectionString);
     FillDictionaries(xpDictionary);
 }
示例#3
0
 public IEnumerable<string> GetConnectionStrings(DataStoreManager dataStoreManager, IEnumerable<XPObjectType> xpObjectTypes,
                                                 string exculdeString) {
     return xpObjectTypes.Select(type => dataStoreManager.GetConnectionString(ReflectionHelper.FindType(type.TypeName))).Distinct().Where(s => s != exculdeString);
 }
示例#4
0
 public MultiDataStore(string connectionString, XPDictionary xpDictionary)
 {
     _dataStoreManager = new DataStoreManager(connectionString);
     FillDictionaries(xpDictionary);
 }