Rc.PetaPoco NuGet Package

基于开源orm框架PetaPoco 实现Sql语句帮助器,不使用反射、lambda等,效率更高,使用更方便。通过表、列描述类,可以借用开发工具的提示完成Sql编写。详见http://www.cnblogs.com/guozhong111/p/7076556.html

helper.Build<ORG_USER.SqlAttr, ORG_DEPARTMENT.SqlAttr>((f, t, c) =>
f.Select(t.ID, t.NAME, t.BIND_IP, t.DESCRIPTION, c.NAME.Alias("CNAME"), c.FAX, c.REMARK)
.From(t.TableName).LeftJoin(c.TableName).On(c.ID == t.DEPT_ID)
.Where((t.ID == "@0" | t.SORT_INDEX >= "5") & t.MOBILE % "@1", "200908281049324536039", "188%"));.




Got any Rc.PetaPoco Question?





Info

Version: 2.0.0.6
Author(s): Simon
Last Update: Saturday, June 24, 2017
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/OldApple/Rc.PetaPoco
NuGet Url: https://www.nuget.org/packages/Rc.PetaPoco


Install
Install-Package Rc.PetaPoco
dotnet add package Rc.PetaPoco
paket add Rc.PetaPoco
Rc.PetaPoco Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.3

avg-downloads-per-day

0

days-since-last-release

2708