Skip to content

nils-org/PetaPoco.DbName

Repository files navigation

PetaPoco.DbName

standard-readme compliant Contributor Covenant Build Codecov Report NuGet package

Provides access to table and colum names for PetaPoco

Table of Contents

Install

Install-Package PetaPoco.DbName

Usage

This package adds two extension methods to IDatabase:

GetTableName

Returns the Table name in the Database.

database.GetTableName<TestTable>();

GetColumnName

Returns the name of a colum in the Database.

database.GetColumnName<TestTable>(x => x.Property);

Maintainer

Nils Andresen @nils-a

Contributing

PetaPoco.DbName follows the Contributor Covenant Code of Conduct.

We accept Pull Requests.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT License © Nils Andresen, Jürgen Rosenthal-Buroh