toptensoftware/PetaPoco — pull request #93 by tawman (2011-12-27 17:57:02+00:00)
Title: Add IsNew() Support for PK of Type Guid

We had decorated our Entities with an IsNew() property, but then I saw that PetaPoco had a similar helper method on the Database class. However, the PetaPoco db.IsNew("Id", entity) did not detect an Guid.Empty as being new.

```c#
public bool IsNew()
{
return Id == Guid.Empty;
}
```