dotnetnext / sqlitesugar Goto Github PK
View Code? Open in Web Editor NEWSqlite ORM SqlSugarORM is the fastest, Simple,Easy API: See README.md
Sqlite ORM SqlSugarORM is the fastest, Simple,Easy API: See README.md
之前项目里已经用了EF,并使用Repository模式定义接口。做了EF的实现。
现在准备使用SqlSugar实现一套Repository,但是由于SqlSugarClient.Queryable 返回类型并不是微软的IQueryable子类型,导致无法统一接口
public partial interface IRepository
{
IQueryable Table { get; }
//后面还有增删改查的一组方法
void Insert(T entity);
}
本来我是想使用依赖注入实现不同框架的无感切换的。
目前的状况是我的业务逻辑层还是得引用不同的接口,并且必须依赖SqlSugar,我知道对于一些复杂的操作,我也必须依赖SqlSugar,但是大部分情况在使用依赖注入时,业务逻辑层是不需要依赖的。
作者是否有能够提示与其他ORM框架统一接口的解决方案?
SqlSugarClient.cs第696行
建议val = (int)(val);
修改为val = Convert.ToInt32(val);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.