In the documentation it says you can decorate the POCO with the table name and primary key column so you dont have to specify the SELECT * FROM开发者_Python百科 TABLENAME an can just use WHERE...
When doing a Insert the variable id is returned as an object. However in my database it is an int and in my POCO it is an int h开发者_Go百科owever when the method call to ExecuteScalar to return @@IDE
I\'m having a go at using PetaPoco on a project rather than NHIbernate which I normally do, and I have a question about collections and using them from a domain model.
If I had a viewmodel that looked something like this public class AddressViewModel { public int AddressID {get;set;}
I have a class defined like so: public class Location { public Location() { Meetings = new List<Meeting>();
My controllers all extend a basic UserAwareController cla开发者_如何学编程ss, that exposes GetCurrentUser() method. I would like any call to this method to redirect to the login page if the user is no