Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ODataSettings.SetInitializer(
                s =>
            {
                s.ValidationSettings.MaxTop = 1000;
                s.QuerySettings.PageSize    = 20;
            });

            GetStartedDemo.Demo();
            Console.WriteLine();

            FilterDemo.BySimpleProperties();
            FilterDemo.ByRelatedEntity();
            OrderByDemo.BySimpleProperties();
            SelectDemo.OnlyNameField();

            ExpandDemo.SelectExpand1();
            ExpandDemo.SelectExpand2();

            SelectExpandJsonDemo.SelectExpandToJson();

            TopSkipDemo.Top5();
            TopSkipDemo.Top5Skip5();
            TopSkipDemo.DefaultPageSize();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            GetStartedDemo.Demo();
            Console.WriteLine();

            FilterDemo.BySimpleProperties();
            FilterDemo.ByRelatedEntity();
            OrderByDemo.BySimpleProperties();
            SelectDemo.OnlyNameField();

            ExpandDemo.SelectExpand1();
            ExpandDemo.SelectExpand2();

            SelectExpandJsonDemo.SelectExpandToJson();
        }