Esempio n. 1
0
        // public static readonly ServiceProxy Default = new ServiceProxy();

        public ServiceProxy(ex_rmsauto_storeEntities db)
        {
            _db = db;
            Type type = this.GetType();

            if (!_proxyTypeCache.ContainsKey(type))
            {
                lock (_sync)
                    if (!_proxyTypeCache.ContainsKey(type))
                    {
                        _proxyTypeCache.Add(type, new ProxyType(type));
                    }
            }
            _proxyType = _proxyTypeCache[type];
        }
Esempio n. 2
0
        public static Dictionary <int, int> GetPermutations()
        {
            Dictionary <int, int> res = new Dictionary <int, int>();

            using (var dc = new ex_rmsauto_storeEntities())
            {
                try
                {
                    res = dc.Permutation1C.Select(x => x).ToDictionary(x => x.OldSupplierId, x => x.NewSupplierId);
                }
                catch (Exception ex)
                {
                    // Logger.WriteError("Произошла ошибка при загрузке словаря перестановок SupplierID", EventLogerID.UnknownError, EventLogerCategory.UnknownCategory, ex);
                }
            }
            return(res);
        }
Esempio n. 3
0
 public OrderHelper(ex_rmsauto_storeEntities db)
 {
     _db = db;
 }