public void testLong() { TPostLong x = new TPostLong(); x.Name = "孙中山"; // access 不支持 int64 if (db.getDatabaseType() == "access") { x.Width = 1122228888; } else { x.Width = 88888888888888888L; } x.insert(); Console.WriteLine("添加成功done"); TPostLong x1 = TPostLong.find("Name=:name") .set("name", x.Name) .first(); Console.WriteLine("find done"); Assert.IsNotNull(x1); Assert.AreEqual(x.Width, x1.Width); }
public void testLong() { TPostLong x = new TPostLong(); x.Name = "孙中山"; // access 不支持 int64 if (db.getDatabaseType() == "access") { x.Width = 1122228888; } else { x.Width = 88888888888888888L; } x.insert(); Console.WriteLine( "添加成功done" ); TPostLong x1 = TPostLong.find( "Name=:name" ) .set( "name", x.Name ) .first(); Console.WriteLine( "find done" ); Assert.IsNotNull( x1 ); Assert.AreEqual( x.Width, x1.Width ); }