コード例 #1
0
        public void Test()
        {
            TypeFactory.SetGlobalAssembly("CreateEntityTest.dll");

            DbManager db = new DbManager();

            try
            {
                Entity         entity   = Entity.CreateInstance();
                EntityAccessor accessor = EntityAccessor.CreateInstance(db);

                accessor.Insert(entity);
            }
            finally
            {
                db.Dispose();
                TypeFactory.SaveGlobalAssembly();
            }
        }