|
1 年之前 | |
---|---|---|
.. | ||
Media | 1 年之前 | |
PetaPoco | 1 年之前 | |
PetaPoco.Tests.Integration | 1 年之前 | |
PetaPoco.Tests.Unit | 1 年之前 | |
T4Templates | 1 年之前 | |
.gitignore | 1 年之前 | |
LICENSE.txt | 1 年之前 | |
PetaPoco.sln | 1 年之前 | |
PetaPoco.sln.DotSettings | 1 年之前 | |
README.markdown | 1 年之前 | |
Start-DockerForIntegrationTests.ps1 | 1 年之前 | |
Stop-DockerForIntegrationTests.ps1 | 1 年之前 | |
appveyor.yml | 1 年之前 | |
contributing.md | 1 年之前 | |
docker-compose.yml | 1 年之前 | |
honourRoll.md | 1 年之前 |
Originally the brainchild of Brad Robinson.
PetaPoco is currently maintained and exteneded by Wade Baglin (@pleb) and Aaron Sherber (@asherber).
Read more about the v6 update
PetaPoco is available from: NuGet PetaPoco.Compiled
Master | Development | Nuget |
---|---|---|
For configuration, code examples and other general information See the docs
Nuget (Single file) | Nuget Core (+t4 templates) | Nuget Core Compiled (dll) |
---|---|---|
Save an entity
db.Save(article);
db.Save(new Article { Title = "Super easy to use PetaPoco" });
db.Save("Articles", "Id", { Title = "Super easy to use PetaPoco", Id = Guid.New() });
Get an entity
var article = db.Single<Article>(123);
var article = db.Single<Article>("WHERE ArticleKey = @0", "ART-123");
Delete an entity
db.Delete(article);
db.Delete<Article>(123);
db.Delete("Articles", "Id", 123);
db.Delete("Articles", "ArticleKey", "ART-123");
Plus much much more.
PetaPoco welcomes input from the community. After all, what is a product without users? If you’d like to contribute, please take the time to read the contribution guide. We would also suggest you have a quick read of Contributing to Open Source on GitHub.
A product like PetaPoco isn't the effort of one person, but rather a combined effort of many. For those individuals who rise above and beyond we have a special place to honour them.