예제 #1
0
        public void UnitTest_CRUD_Create()
        {
            Stopwatch watch = new Stopwatch();

            watch.Start();

            var tarkOrm = new TarkOrm("localhost");

            if (tarkOrm.GetById <Country>(247) != null)
            {
                tarkOrm.RemoveById <Country>(247);
            }

            tarkOrm.Add(new Country
            {
                CountryID   = 247,
                ContinentID = 1,
                CountryCode = "ND",
                CurrencyID  = 1,
                FlagB64     = "",
                Name        = "Testing Country"
            });

            watch.Stop();

            Debugger.Log(0, "", $"TarkORM Elapsed MS: {watch.ElapsedMilliseconds.ToString()}{Environment.NewLine}");
        }
예제 #2
0
        public void UnitTest_CRUD_CreatePartial()
        {
            Stopwatch watch = new Stopwatch();

            watch.Start();

            var tarkOrm = new TarkOrm("localhost");

            tarkOrm.Add(new TestOrm
            {
                Name = "Polskyman"
            });

            watch.Stop();

            Debugger.Log(0, "", $"TarkORM Elapsed MS: {watch.ElapsedMilliseconds.ToString()}{Environment.NewLine}");
        }