LaotiSok.ModelBuilder.NamingCaseToSpecificCase 1.0.0-alpha.4

This is a prerelease version of LaotiSok.ModelBuilder.NamingCaseToSpecificCase.
There is a newer version of this package available.
See the version list below for details.
dotnet add package LaotiSok.ModelBuilder.NamingCaseToSpecificCase --version 1.0.0-alpha.4
NuGet\Install-Package LaotiSok.ModelBuilder.NamingCaseToSpecificCase -Version 1.0.0-alpha.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LaotiSok.ModelBuilder.NamingCaseToSpecificCase" Version="1.0.0-alpha.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LaotiSok.ModelBuilder.NamingCaseToSpecificCase --version 1.0.0-alpha.4
#r "nuget: LaotiSok.ModelBuilder.NamingCaseToSpecificCase, 1.0.0-alpha.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LaotiSok.ModelBuilder.NamingCaseToSpecificCase as a Cake Addin
#addin nuget:?package=LaotiSok.ModelBuilder.NamingCaseToSpecificCase&version=1.0.0-alpha.4&prerelease

// Install LaotiSok.ModelBuilder.NamingCaseToSpecificCase as a Cake Tool
#tool nuget:?package=LaotiSok.ModelBuilder.NamingCaseToSpecificCase&version=1.0.0-alpha.4&prerelease

ModelBuilder Case Conversion

Overview

This package is designed to convert the naming convention used in ModelBuilder models to a specific case format. So we can work with a specific database without changing the naming convention in ASP dotnet, such as when we want to work with a PostgreSQL database or other database. It ensures consistency and readability across your model names, making them easier to understand and maintain.

Features

  • Flexible Case Conversion: Supports various case styles including PascalCase, snake_case, camelCase, lowercase, UPPERCASE.
  • Batch Processing: Ability to process multiple models at once, saving time and effort.
  • Safe Refactoring: Previews changes before applying them to avoid unintended modifications.

Getting Started

To use this utility, simply call the extension in Class DbContext and in method OnModelCreating.

public class YourClassNameDbContext : DbContext
{
    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        // Convert specific naming to SnakeCase
        modelBuilder.NamingToSnakeCase();
    }
}

Prerequisites

  • dotnet 8.0 or higher

Installation

  • dotnet add package LaotiSok.ModelBuilder.NamingCaseToSpecificCase
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 69 6/6/2024
1.0.2 65 6/6/2024
1.0.1 80 5/2/2024
1.0.0 82 4/30/2024
1.0.0-alpha.5 45 4/29/2024
1.0.0-alpha.4 44 4/29/2024
1.0.0-alpha.3 43 4/29/2024
1.0.0-alpha.2 39 4/29/2024
1.0.0-alpha.1 43 4/29/2024