For some reason when I set up attributes on a Poco class for tablename and primary key PetaPoco is not seeing them and defaulting to ID autoIncrement = false
[TableName("MyTableName")]
[PrimaryKey("Id", autoIncrement = true)]
public class MyClass
{
public int Id { get; set; }
public string Description { get; set; }
}
When I call the Insert() method this fails. If I call the insert method and explicitly pass the table name, primary key column, autoincrement then it works.
Any ideas why Peta Poco is not seeing the attributes?
I am using C# VS 2012 targeting the 4.5 framework