Пример #1
0
        public void Create()
        {
            using (var sm = new StudentManager())
            {
                Student s = new Student();

            }
        }
Пример #2
0
        /// <summary>
        /// TODO Call Dispose Methods for each Manager.
        /// </summary>
        /// <param name="disposing"></param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_pman != null)
                {
                    _pman.Dispose();
                    _pman = null;
                }
                if (_sman != null)
                {
                    _sman.Dispose();
                    _sman = null;
                }
                if (_sman != null)
                {
                    _iman.Dispose();
                    _iman = null;
                }
                if (_dman != null)
                {
                    _dman.Dispose();
                    _dman = null;
                }
                if (_cman != null)
                {
                    _cman.Dispose();
                    _cman = null;
                }
                if (_tman != null)
                {
                    _tman.Dispose();
                    _tman = null;
                }
                if (_aman != null)
                {
                    _aman.Dispose();
                    _aman = null;
                }

                if (_pubman != null)
                {
                    _pubman.Dispose();
                    _pubman = null;
                }
                if (_eman != null)
                {
                    _eman.Dispose();
                    _eman = null;
                }
                if (_semman != null)
                {
                    _semman.Dispose();
                    _semman = null;
                }
                base.Dispose(disposing);
            }
        }