Do you mean in a Visual FoxPro sense ?

I am currently playing around with VFP data using ASP.Net MVC 3. In
terms of pure access to VFP data it is pretty easy to knock up an MVC
site without the 'MV' part, in other words just controllers that return
JSON. 

So a controller would be like:

        [HttpGet]
        public JsonResult GetActivityOutcomes()
        {
            var VFP = new Vfp();
            var Json = new JsonResult();
            Json.Data = VFP.GetActivityOutcomes();
            return Json;

        }


This uses a back-end class 'Vfp' which has methods like
GetActivityOutcomes that access the back-end VFP data using OLE Db. The
advantage of this is that you can just HTTP call it like this:

http://mywebsite/Home/GetActivityOutcomes

or

http://mywebsite/Home/GetCustomers?code=ABC001

And get nice JSON back, without all the tedious faffing of web services.
Well, they're tedious and faffy in the Windows world at any rate.
-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to