Comments (6)
I'm not sure if I follow. Do you need to map the field names as they come in from the query string (the parameters to the ODataQuery
method)?
from nhibernate.odata.
I will try to explain by example.
I have class DtoA which is public to the users and class DataModelA which is private and is mapped to NHibernate.
Lets say that one of the members in DtoA is called FieldA and DataModelA contains a field called DbFieldA.
The query string will refer to FieldA, but when translating it to the ICriteria, i need this filed to be replaced with DbFieldA (because that is the field that NHibenate knows..)
from nhibernate.odata.
Have a look at this change. This change allows you to provide a custom NameResolver
on the ODataParserConfiguration
. An example on how to use this can be found in https://github.com/pvginkel/NHibernate.OData/blob/e2e80aea8e8f1a89fabc9ede480c1ca0639cef84/NHibernate.OData.Test/Criterions/NameResolving.cs.
from nhibernate.odata.
I will take a look.
Thanks for the quick reply!!
from nhibernate.odata.
I took the last version and it is exactly what i needed.
Thanks a lot
from nhibernate.odata.
You're welcome.
from nhibernate.odata.
Related Issues (20)
- Implement duration support
- Incorrect operator precedence HOT 1
- OData 4 support HOT 1
- Additional OData query options support HOT 1
- Member resolving is not tested
- CaseSensitive parameter not working HOT 5
- Issue with Any in OData $filter clause. HOT 2
- Support $count and &inlinecount HOT 1
- Query is not supported with substringof and 3 or more clauses HOT 2
- Any/All with collections of basic types.
- "Not Contains" clause not works HOT 2
- `bigint`/`long` overflow
- Implement a sample project implementing a full OData service HOT 4
- .NET Standard compatible
- Filtering on null throws exception HOT 2
- Allow column names to be specified case insenstive HOT 1
- indexof parameters are swapped for sql HOT 1
- How to use in conjunction with Asp.net MVC and webapi 2.0? HOT 6
- substringof - which is correct implementation? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhibernate.odata.