Presentation is loading. Please wait.

Presentation is loading. Please wait.

Getting Started Sajori.NET with Spring.NET 2007/10 yuichi TAKAHASHI.

Similar presentations


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

1 Getting Started Sajori.NET with Spring.NET 2007/10 yuichi TAKAHASHI

2 Copyright 2007 yuichi TAKAHASHI2

3 3

4 4 [TestFixture] public class Class1 : TransactionalTestCaseWithSpring { [Test] public void HelloSajori() { ISampleDao dao = (ISampleDao)this.context.GetObject("SampleDao"); Assert.IsNotNull(dao); this.CreateTables(dao, typeof(SampleEntity)); SampleEntity se = new SampleEntity(); se.keyString = "00001"; se.valueString = "this is test."; dao.Save(se); SampleEntity se2 = (SampleEntity)dao.Find(se); Assert.AreEqual(se.keyString, se2.keyString); Assert.AreEqual(se.valueString, se2.valueString); } public interface ISampleDao : ISajoriAdoDaoSupport{} public class SampleDao : SajoriAdoDaoSupport, ISampleDao{} [Mapping] public class SampleEntity { [Mapping(UniqueKey = true)] public String keyString; [Mapping] public String valueString; }

5 Copyright 2007 yuichi TAKAHASHI5

6 6

7 Copyright 2007 yuichi TAKAHASHI7 NUnit NUnit

8 Copyright 2007 yuichi TAKAHASHI8 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 with Spring.NET 2007/10 yuichi TAKAHASHI."

Similar presentations


Ads by Google