using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main()
var url = "https://services.odata.org/TripPinRESTierService";
var connString = new OdataConnectionString{ServiceUrl = url };
var setting = new PocoSetting{Lang = Language.TS, NameCase = CaseEnum.Camel, AddNavigation = true,
var o2p = new O2P(setting);
var pocostore = o2p.GenerateTsAsync(connString).Result;
var code = pocostore.ToString();
pocostore.Save("model", true);