All Projects → TANZAME → Riz.xframework

TANZAME / Riz.xframework

Licence: apache-2.0
Riz.XFramework is a lightweight and high performance object-relational mapper for .NET use the native Entity Framework api.

Labels

Projects that are alternatives of or similar to Riz.xframework

Digitalwand.admin helper
API для сборки кастомных админок в Битриксе
Stars: ✭ 135 (-10%)
Mutual labels:  orm
Jupiter
jupiter是一个aio web框架,基于aiohttp。支持(restful格式、扫描注解、依赖注入、jinja2模板引擎、ORM框架)等。
Stars: ✭ 140 (-6.67%)
Mutual labels:  orm
Hsweb Easy Orm
简单的orm工具,为动态表单而生
Stars: ✭ 142 (-5.33%)
Mutual labels:  orm
Framework
Strongly-typed JavaScript object with support for validation and error handling.
Stars: ✭ 136 (-9.33%)
Mutual labels:  orm
Entityframeworkcore.cacheable
EntityFrameworkCore second level cache
Stars: ✭ 138 (-8%)
Mutual labels:  orm
Sqlingo
💥 A lightweight DSL & ORM which helps you to write SQL in Go.
Stars: ✭ 142 (-5.33%)
Mutual labels:  orm
Typeorm Plus
TypeORM+ adds functionality to TypeORM intending to make the Repository and QueryBuilder more powerful.
Stars: ✭ 135 (-10%)
Mutual labels:  orm
Awesome Doctrine
A collection of useful Doctrine snippets.
Stars: ✭ 147 (-2%)
Mutual labels:  orm
Jleopard
orm framework
Stars: ✭ 139 (-7.33%)
Mutual labels:  orm
Sequelize Ui
Browser-based GUI for previewing and generating Sequelize project files.
Stars: ✭ 142 (-5.33%)
Mutual labels:  orm
Bitter.core
bitter.core is a high-performance and easy-to-use netcore / netframework orm framework. I think you'll love it. designed for development and efficiency. efficiency, high performance and high stability are always the pursuit of programmers. bittercore was born for that. you want to be lazy, even lazier! simple, more simple! controllable, more controllable! please use it bitter.Core .
Stars: ✭ 136 (-9.33%)
Mutual labels:  orm
Core
All of the required core code
Stars: ✭ 139 (-7.33%)
Mutual labels:  orm
Gf Cli
GoFrame Command Line Interface, which is your helpmate for building GoFrame application with convenience.
Stars: ✭ 143 (-4.67%)
Mutual labels:  orm
Gremlin Orm
gremlin-orm is an ORM for graph databases in Node.js
Stars: ✭ 136 (-9.33%)
Mutual labels:  orm
Jsona
Data formatter that creates simplified objects from JSON or stored reduxObject, creates JSON from the same simplified objects (in according with JSON API specification)
Stars: ✭ 144 (-4%)
Mutual labels:  orm
Mybatis Plus
An powerful enhanced toolkit of MyBatis for simplify development
Stars: ✭ 12,132 (+7988%)
Mutual labels:  orm
Gosql
golang orm and sql builder
Stars: ✭ 141 (-6%)
Mutual labels:  orm
Php Orm Benchmark
PHP ORM Benchmark
Stars: ✭ 147 (-2%)
Mutual labels:  orm
Kogel.dapper.extension
orm框架 dapper to linq
Stars: ✭ 146 (-2.67%)
Mutual labels:  orm
Dapper.linq
Dapper.Linq
Stars: ✭ 143 (-4.67%)
Mutual labels:  orm

🇨🇳 Riz.XFramework

NuGet stats GitHub license

Riz.XFramework 是一款基于.NET的轻量级高性能 ORM 框架,参考 EntiryFramework 的设计思想,保留大量原汁原味的微软API,支持 Fx 4.0+ 和 DotNetCore3.1+。

功能特点

  • 原生 EF 语法,完整的代码注释,零门槛上手
  • 支持 Linq 查询、拉姆达表达式
  • 支持丰富的表达式函数
  • 支持批量增删改查和多表关联更新
  • 支持 SqlServer、MySql、Postgre、Oracle、SQLite 等多种数据库
  • 支持 Postgre、Oracle 大小写敏感
  • 支持无限级一对一、一对多导航属性和延迟加载
  • 支持不同字段类型之间的智能映射
  • 支持实体属性名称和数据库字段名称映射
  • 支持原生 Ado.Net、临时表、表变量、AOP操作

联系方式


快速开始

安装

PM> Install-Package Riz.XFramework
Database Package
SqlServer Riz.XFramework
MySql Riz.XFramework.MySql
Oracle Riz.XFramework.Oracle
Postgre Riz.XFramework.Postgre
SQLite Riz.XFramework.SQLite

定义实体

[Table(Name = "Bas_Client")]
public partial class Client
{
    [Column(IsKey = true)]
    public virtual int ClientId { get; set; }
    public virtual string ClientCode { get; set; }
    public virtual string ClientName { get; set; }
    public virtual int CloudServerId { get; set; }
    [ForeignKey("CloudServerId")]
    public IList<CloudServer> CloudServer { get; set; }
}

[Table(Name = "Sys_CloudServer")]
public partial class CloudServer
{
    [Column(IsKey = true)]
    public virtual int CloudServerId { get; set; }
    public virtual string CloudServerCode { get; set; }
    public virtual string CloudServerName { get; set; }
}

基本用法

// 声明数据库链接字符串
const string connString = "Server=.;Database=***;uid=**;pwd=**;pooling=true;connect timeout=10;";
// 实例化数据上下文
// SqlServer
var context = new SqlServerDbContext(connString);
var data = context.GetTable<Client>().Where(a => a.ClientId <= 10).ToList();
data = context
    .GetTable<Client>()
    .Include(a => a.CloudServer, a => new
    {
        CloudServerCode = a.CloudServer.CloudServerCode
    })
    .ToList();

📌 更详细教程 Wiki

支持作者

RUNOOB 图标

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].