Пример #1
0
        public static object Bind(object entity, ODataQuerySettings settings,
                                  SelectExpandQueryOption selectExpandQuery)
        {
            Contract.Assert(entity != null);

            SelectExpandBinder binder = new SelectExpandBinder(settings, selectExpandQuery);

            return(binder.Bind(entity));
        }
Пример #2
0
        public static IQueryable Bind(IQueryable queryable, ODataQuerySettings settings,
                                      SelectExpandQueryOption selectExpandQuery)
        {
            Contract.Assert(queryable != null);

            SelectExpandBinder binder = new SelectExpandBinder(settings, selectExpandQuery);

            return(binder.Bind(queryable));
        }