Presentation is loading. Please wait.

Presentation is loading. Please wait.

Getting Started Sajori.NET 2007/10 yuichi TAKAHASHI.

Similar presentations


Presentation on theme: "Getting Started Sajori.NET 2007/10 yuichi TAKAHASHI."— Presentation transcript:

1 Getting Started Sajori.NET 2007/10 yuichi TAKAHASHI

2 Copyright 2007 yuichi TAKAHASHI2

3 3

4 4 [TestFixture] public class Class1 : TransactionalTestCase { protected override string ConnectionStringName { get { return "TEST"; } } [Test] public void HelloSajori() { this.CreateTables(typeof(SampleEntity)); SampleDao dao = new SampleDao(); SampleEntity se = new SampleEntity(); se.keyString = "00001"; se.valueString = "this is test."; dao.Save(se, dao.CreateCommand(this.tran)); SampleEntity se2 = (SampleEntity)dao.Find(se, dao.CreateCommand(this.tran)); Assert.AreEqual(se.keyString, se2.keyString); Assert.AreEqual(se.valueString, se2.valueString); } public class SampleDao : SajoriDaoTemplate {} [Mapping] public class SampleEntity { [Mapping(UniqueKey = true)] public String keyString; [Mapping] public String valueString; }

5 Copyright 2007 yuichi TAKAHASHI5

6 Copyright 2007 yuichi TAKAHASHI6 NUnit NUnit

7 Copyright 2007 yuichi TAKAHASHI7 About Sajori.NET Official Site –http://xpenguin.biz/sajori/ –Sample source code is also available. License –Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 Technical Supports (fare-paying) –foreach ltd. (info@4each.biz) 03-5246-5741


Download ppt "Getting Started Sajori.NET 2007/10 yuichi TAKAHASHI."

Similar presentations


Ads by Google