Comments (4)
+1
from nhibernate.odata.
I think I didn't update this issue. Could you have a look at NHibernate.OData.Demo? It should be a full featured demo project.
from nhibernate.odata.
I ended up just using the standard approach rather than creating a service object from scratch. My code ended up looking like this:
DetachedCriteria criteria = null;
if (!String.IsNullOrEmpty(odata))
{
ICriteria query = GetSession().ODataQuery<Job>(odata);
criteria = new ConvertedDetachedCriteria(query);
}
else
criteria = DetachedCriteria.For<Job>();
public class ConvertedDetachedCriteria : DetachedCriteria
{
public ConvertedDetachedCriteria(ICriteria criteria)
: base((CriteriaImpl)criteria, criteria)
{
var impl = (CriteriaImpl)criteria;
impl.Session = null;
}
}
Thanks for taking the time to build this, it saved me a ton of time!
from nhibernate.odata.
You're very welcome. I'm glad I could help.
from nhibernate.odata.
Related Issues (20)
- Implement duration support
- Member resolving is not tested
- 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
- Incorrect operator precedence HOT 1
- OData 4 support HOT 1
- Additional OData query options support HOT 1
- Support for DTOs HOT 6
- 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
- .NET Standard compatible
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.