Skip to content

Instantly share code, notes, and snippets.

@taknb2nch
Last active June 7, 2016 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taknb2nch/3d356cc2d74fc9deae8fde7b2739769b to your computer and use it in GitHub Desktop.
Save taknb2nch/3d356cc2d74fc9deae8fde7b2739769b to your computer and use it in GitHub Desktop.
seasar-dotnet:2497のサンプル
public class Main {
protected TestBhvService service;
public static void Main(string[] args)
{
var m = new Main();
QuillInjector.GetInstance().Inject(m);
m.Run();
}
public void Run()
{
service.GetK010Info(1);
}
}
[Implementation]
[Transaction]
public class TestBhvService : TestBase
{
protected テーブルBhvクラス bhv;
public TestBhvService() { }
public virtual テーブルEntityクラス GetK010Info(int intNumber)
{
var cb = new テーブルCBクラス();
cb.Query().Setキー_Equal(intNumber);
return bhv.SelectEntity(cb);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment