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();
There was an error while loading. Please reload this page.