GithubHelp home page GithubHelp logo

sqlitesugar's People

Contributors

dotnetnext avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sqlitesugar's Issues

SqlSugarClient.Queryable<T> 返回类型与微软的IQueryable接口问题

之前项目里已经用了EF,并使用Repository模式定义接口。做了EF的实现。
现在准备使用SqlSugar实现一套Repository,但是由于SqlSugarClient.Queryable 返回类型并不是微软的IQueryable子类型,导致无法统一接口
public partial interface IRepository
{
IQueryable Table { get; }
//后面还有增删改查的一组方法
void Insert(T entity);
}
本来我是想使用依赖注入实现不同框架的无感切换的。
目前的状况是我的业务逻辑层还是得引用不同的接口,并且必须依赖SqlSugar,我知道对于一些复杂的操作,我也必须依赖SqlSugar,但是大部分情况在使用依赖注入时,业务逻辑层是不需要依赖的。
作者是否有能够提示与其他ORM框架统一接口的解决方案?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.