Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://nick-lucas.github.io/LimeBean/
Hybrid-ORM for .NET
https://nick-lucas.github.io/LimeBean/
Last synced: 9 days ago
JSON representation
Hybrid-ORM for .NET
- Host: GitHub
- URL: https://nick-lucas.github.io/LimeBean/
- Owner: Nick-Lucas
- License: mit
- Created: 2016-06-23T17:37:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-10T04:57:29.000Z (over 5 years ago)
- Last Synced: 2024-08-01T02:28:16.838Z (3 months ago)
- Language: C#
- Homepage: https://nick-lucas.github.io/LimeBean/
- Size: 1.25 MB
- Stars: 28
- Watchers: 3
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-dotnet-core - Limebean - Hybrid-ORM, designed to be simple to use and not totally hide SQL, while having all the nice things you expect from an ORM. Inspired by RedBeanPHP. (Frameworks, Libraries and Tools / ORM)
- awesome-dotnet-core - Limebean - Hybrid-ORM,设计简单易用,不完全隐藏SQL,同时拥有您期望从ORM获得的所有好处。灵感来自RedBeanPHP。 (框架, 库和工具 / 对象关系映射ORM)
- awesome-dotnet-core - Limebean - Hybrid-ORM, designed to be simple to use and not totally hide SQL, while having all the nice things you expect from an ORM. Inspired by RedBeanPHP. (Frameworks, Libraries and Tools / ORM)
README
# LimeBean
[![Build status](https://ci.appveyor.com/api/projects/status/4oxjopx4mbre22ky/branch/master?svg=true)](https://ci.appveyor.com/project/Nick-Lucas/limebean/branch/master)
[![NuGet](https://img.shields.io/nuget/v/LimeBean.svg)](https://www.nuget.org/packages/LimeBean)
[![MIT License](https://img.shields.io/github/license/Nick-Lucas/limebean.svg)](https://raw.githubusercontent.com/Nick-Lucas/LimeBean/master/LICENSE.txt)[RedBeanPHP](http://redbeanphp.com/)-inspired Hybrid-ORM for .NET.
## Available on NuGet Gallery
PM> Install-Package LimeBean
## Get started in 2 minutes:
```c#
// Make an ADO.Net connection and create a BeanAPI from it.
var connection = new DbConnection(connectionString);
connection.Open();
var api = new BeanApi(connection);// Get a row from a known record ID
int bookId = 7;
Bean row = api.Load("books", bookId);
string bookTitle = row.Get("title");
Console.WriteLine(bookTitle);// Add a new row to the database
Bean newRow = api.Dispense("books");
newRow
.Put("title", "Cloud Atlas")
.Put("author", "David Mitchell");
var newBookId = api.Store(newRow);
Console.WriteLine("New book ID: " + newBookId.ToString());
```## Supported Frameworks and Databases
Database | .NET | .NET Core
--------------|------|-----------
SQLite | + | +
MySQL/MariaDB | + | +
PostgreSQL | + | +
SQL Server | + | +## Full Documentation
https://nick-lucas.github.io/LimeBean/