-
Notifications
You must be signed in to change notification settings - Fork 3
Home
reddy6ue edited this page Sep 4, 2017
·
6 revisions
For up-front configuration purposes that will become clear, AutoPoco has the following steps involved in use:
IGenerationSessionFactory factory = AutoPocoContainer.Configure(x =>
{
x.Conventions(c =>
{
c.UseDefaultConventions();
});
x.AddFromAssemblyContainingType<SimpleUser>();
});
IGenerationSession session = factory.CreateSession();
SimpleUser user = session.Single<SimpleUser>().Get();
List<SimpleUser> users = session.List<SimpleUser>(100).Get();