Giter Site home page Giter Site logo

restfullinq's Introduction

The Standard - COMPLIANT

RESTFulLinq

RESTFulLinq is an easy way to send LINQ queries to your API fluently

Here's a demo for the library:

https://www.youtube.com/watch?v=GrpGo31xg9k

This library is on a very alpha state - I will do my very best to make sure I bring it up to a production ready state as soon as I can.

restfullinq's People

Contributors

denysvega avatar hassanhabib avatar imjane5 avatar shrihumrudha 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

restfullinq's Issues

Problem with using enum in "Where" construction

Hi Hassan.

Thank you for RestfulLinq! I have a problem with it if I try to filter by custom enum inside of Where construction. This is my sandbox project: https://github.com/Andrey-Bushman/odata-and-restfullinq-sandbox . My controller has two actions. One of them uses RestfilLinq (second uses odata). For /api/Persons/ByLinq endpoint I try to use linq: Where(n => n.Gender == PersonModel.Models.Gender.Male) but I get the exception:

The name 'PersonModel' does not exist in the current context

If I try to do the same without namespace: Where(n => n.Gender == Gender.Male) then I get the exception:

The name 'Gender' does not exist in the current context

If I cast enum to int then it works fine in Swagger UI: Where(n => (int) n.Gender == 0), but doesn't work in my C# code (look the comment in my xunit test, please):

error CS1955: Non-invocable member 'Convert' cannot be used like a method.

What I did wrong? Thank you.

CODE RUB: Fix Package Conflicts

Errors

I have attached a photo of the errors i get and it happens with all my projects , i tried it with OtripleS.Portal too and i got the same errors!!!

CODE RUB: Security check or howto prevent code injection

Hi,

I read about your nice Linq project in reddit and my first concern was the code injection part.
In our company we also use script code and use roslyn to parse the script code to check all type usages against a list of permitted types.

I extracted the responsible code into the github repository ScriptVerifier.
Maybe it helps as a starter or can be used in combination with your linq script compilation.

Regards

Ralf

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.