Giter VIP home page Giter VIP logo

petapoco.dbname's Introduction

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

petapoco.dbname's People

Contributors

nils-a avatar renovate-bot avatar renovate[bot] avatar

Watchers

 avatar  avatar

Forkers

nils-a

petapoco.dbname's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

cake
recipe.cake
  • Cake.Recipe 3.1.1
github-actions
.github/workflows/build.yml
  • actions/checkout v4@a5ac7e51b41094c92402da3b24376905380afc29
  • actions/setup-dotnet v4.0.0@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
  • actions/cache v4@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  • cake-build/cake-action v1@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b
  • actions/upload-artifact v4@65462800fd760344b1a7b4382951275a0abb4808
  • actions/upload-artifact v4@65462800fd760344b1a7b4382951275a0abb4808
.github/workflows/codeql-analysis.yml
  • actions/checkout v4@a5ac7e51b41094c92402da3b24376905380afc29
  • actions/setup-dotnet v4.0.0@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
  • actions/cache v4@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  • github/codeql-action v3@9fdb3e49720b44c48891d036bb502feb25684276
  • cake-build/cake-action v1@a6eb054329257c9e70a6c6bf01747ad6e1d9d52b
  • github/codeql-action v3@9fdb3e49720b44c48891d036bb502feb25684276
  • ubuntu 22.04
nuget
.config/dotnet-tools.json
global.json
  • dotnet-sdk 8.0.300
src/PetaPoco.DbName.Tests/PetaPoco.DbName.Tests.csproj
  • xunit.runner.visualstudio 2.8.0
  • xunit.analyzers 1.13.0
  • xunit 2.8.0
  • System.Data.SQLite 1.0.118
  • Shouldly 4.2.1
  • Moq 4.20.70
  • Microsoft.SourceLink.GitHub 8.0.0
  • Microsoft.NET.Test.Sdk 17.10.0
  • JetBrains.Annotations 2023.3.0
  • coverlet.msbuild 6.0.2
src/PetaPoco.DbName/PetaPoco.DbName.csproj
  • Microsoft.SourceLink.GitHub 8.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Make escaping of SqlIdentifier optional

database.GetColumnName<TestTable>(x => x.Property) produces something like [Property] (for SQL Server). I.e. the name of the column is escaped using the settings of the given provider.

This would look something like database.GetColumnName<TestTable>(x => x.Property, escape: false) and result in Property (without the [ and ]).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.