ShuitNet.ORM 1.3.6

dotnet add package ShuitNet.ORM --version 1.3.6
                    
NuGet\Install-Package ShuitNet.ORM -Version 1.3.6
                    
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="ShuitNet.ORM" Version="1.3.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ShuitNet.ORM" Version="1.3.6" />
                    
Directory.Packages.props
<PackageReference Include="ShuitNet.ORM" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ShuitNet.ORM --version 1.3.6
                    
#r "nuget: ShuitNet.ORM, 1.3.6"
                    
#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.
#:package ShuitNet.ORM@1.3.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ShuitNet.ORM&version=1.3.6
                    
Install as a Cake Addin
#tool nuget:?package=ShuitNet.ORM&version=1.3.6
                    
Install as a Cake Tool

ShuitNet.ORM (Core)

NuGet version

軽量でシンプルなORMライブラリのコアパッケージです。

概要

ShuitNet.ORMは、.NET環境でデータベースを簡単に操作するためのObject-Relational Mapping (ORM) ライブラリです。このパッケージにはコア機能と属性定義が含まれています。

特徴

  • 属性ベース設定: データクラスに属性を付与してマッピング設定
  • 命名規則の自動変換: CamelCase, SnakeCase, KebabCase, PascalCaseに対応
  • 外部キー対応: ForeignKey属性によるリレーション処理
  • マスキング機能: データの自動マスキング処理

インストール

dotnet add package ShuitNet.ORM

使用方法

データクラスの定義

using ShuitNet.ORM.Attribute;

public class User
{
    [Key]
    public int Id { get; set; }
    
    public string Name { get; set; }
    
    public string Email { get; set; }
    
    [Ignore]
    public string TemporaryData { get; set; }
    
    [Serial]
    public DateTime CreatedAt { get; set; }
}

属性

KeyAttribute

プライマリキーを指定します。

NameAttribute

テーブル名やカラム名をカスタマイズします。

IgnoreAttribute

データベース操作から除外するプロパティを指定します。

SerialAttribute

自動増分カラムを指定します。

ForeignKeyAttribute

外部キーの関係を定義します。

MaskAttribute

データの自動マスキングを行います。

データベース固有の実装

実際のデータベース操作には、以下の実装パッケージが必要です:

ライセンス

このプロジェクトはMITライセンスの下で公開されています。詳細については、LICENSE.txtファイルを参照してください。

作者

shuit (shuit.net)

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ShuitNet.ORM:

Package Downloads
ShuitNet.ORM.PostgreSQL

シンプルで軽量なPostgreSQL向けORMライブラリ。非同期対応、属性ベース設定、命名規則の自動変換をサポート。

ShuitNet.ORM.MySQL

シンプルで軽量なMySQL向けORMライブラリ。非同期対応、属性ベース設定、命名規則の自動変換をサポート。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.6 44 11/8/2025
1.3.5 99 11/7/2025
1.2.0 395 9/2/2025
1.0.0 198 7/1/2025