Пример #1
0
        /// <summary>
        /// Register a DbObject
        /// </summary>
        /// <param name="t">Object type</param>
        public void RegisterDbObject(Type t)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(typeof(DbManager).FullName);
            }

            _typeAccessors.Add(t, TypeAccessor.Create(t));
            IDbObject obj = (IDbObject)Activator.CreateInstance(t);

            _typeMappings.Add(t, obj.GetMapping());
        }