private static SVC_ODataPersonView_DE CreateExchange()

in FMLab/ODataConsoleApplication/Program.cs [180:196]


        private static SVC_ODataPersonView_DE CreateExchange()
        {
            DataServiceCollection<SVC_ODataPersonView_DE> svcOdata = new DataServiceCollection<SVC_ODataPersonView_DE>(context);

            var newExchange = new SVC_ODataPersonView_DE();
            svcOdata.Add(newExchange);

            newExchange.Name = "foo bar";
            newExchange.Email  = "kuntal-test";

            context.SaveChanges(SaveChangesOptions.PostOnlySetProperties);

            //context.SaveChanges();

            return newExchange;

        }