Coder Social home page Coder Social logo

lonesomegeek / lsg.genericcrud Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 8.0 1.73 MB

This library is used to provide simplified RESTful CRUD apis with: Untyped Crud Controller Untyped Repository. This library allies injection (IoC), minimum codebase for maximum efficiency.

License: MIT License

C# 37.92% Dockerfile 0.09% TSQL 0.86% Smalltalk 0.01% JavaScript 0.33% TypeScript 10.54% HTML 50.11% Shell 0.07% SCSS 0.07%
asp-net-core aspnetcore crud dto entity generic ioc library-allies-injection maximum-efficiency netcore netcore20 product-entity ressources rest restful scenario visual-studio webapi

lsg.genericcrud's People

Contributors

glatendresse avatar lonesomegeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lsg.genericcrud's Issues

Add services helpers

Instead of having to add manually all services, convert this to AddCrud and AddCrudDto

Support for multiple repository / multiple context

Even in the same application, I can have a resource pointing to a context/repo and another resource pointing to another context/repo.

Is it possible to support?
Test and maybe new development to do...

Merge samples with principal library

After giving it a try, this is not a good idea of maintaining two repositories, one for libs and one for samples. It could be easily placed at the same place within LSG.GenericCrud/LSG.GenericCrud.Samples folder for example.

Extract logic related to automapper in another library

To be as lightweight as possible, extract everything related to automapper in its own dedicated library. In the case in a user would like only the core set of features and not the features related to DTO

Update docs and samples accordingly

Ability to create custom layers

Actually, we are not able to easily create custom layers on top of existing logic. Let's say I have a particular thing to do before calling the repository in the service layer and I need to make a call to a webservice.

I would need a way of creating a custom service layer on top of the actual CrudService, ie.:

public class MyCustomService : CrudService<Account> {
// default constructor
public override GetAll...{
// my custom code
base.GetAll()...

Support for odata query structure?

Is this possible to get support for odata query structure. OData seems really powerful, but it seems to be tightly coupled to controllers (no middle layer or repository layer seems possible).

Support native paging feature

This library will be awesome with dynamic paging feature. When needed, a controller should be able to specify to enable paging and all the rest should come automatically. No additional code needed!

Single repository for managing entities

For historical purpose, multiple entities of multiple types needs to be created at the same time Unit of work. But, actual setup requires to use one repository per entity type which is not useful to make single commits to database.

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.