Ejemplo n.º 1
0
        static public void Insert()
        {
            //TODO
            //暂时热更内不支持创建插入操作
            //该条测试可能会对后面有影响
            var h1 = new APITestHero()
            {
                Id = 1
            };
            var h2 = new APITestHero()
            {
                Id = 2
            };
            var h3 = new APITestHero()
            {
                Id = 3
            };

            if (!ILRuntimeHelper.IsRunning)
            {
                SqliteLoder.LoadLocalDBOnEditor(Application.streamingAssetsPath, Application.platform);
                SqliteHelper.DB.CreateTable <APITestHero>();
                SqliteHelper.DB.InsertTable(new List <APITestHero>()
                {
                    h1, h2, h3
                });
            }

            Assert.IsPass(true);
        }
Ejemplo n.º 2
0
        static public void Insert()
        {
            var h1 = new APITestHero()
            {
                Id = 1
            };
            var h2 = new APITestHero()
            {
                Id = 2
            };
            var h3 = new APITestHero()
            {
                Id = 3
            };

            if (SqliteLoder.Connection == null)
            {
                SqliteLoder.Load(Application.streamingAssetsPath);
            }

            SqliteHelper.DB.CreateDB <APITestHero>();
            SqliteHelper.DB.InsertTable(new List <APITestHero>()
            {
                h1, h2, h3
            });
        }
Ejemplo n.º 3
0
        static public void Insert()
        {
            //TODO
            //暂时热更内不支持创建插入操作
            //该条测试可能会对后面有影响
            var h1 = new APITestHero()
            {
                Id = 1
            };
            var h2 = new APITestHero()
            {
                Id = 2
            };
            var h3 = new APITestHero()
            {
                Id = 3
            };


            SqliteLoder.LoadOnEditor(Application.streamingAssetsPath, Application.platform);
            SqliteHelper.DB.CreateDB <APITestHero>();
            SqliteHelper.DB.InsertTable(new List <APITestHero>()
            {
                h1, h2, h3
            });
        }