Controlling which columns are included in the api

class OrdersViewModel : ViewModelHelper
{
    public readonly Northwind.Models.Orders Orders = new Northwind.Models.Orders();

    public OrdersViewModel()
    {
        From = Orders;
        AllowUpdate = true;

        MapColumn(Orders.OrderID,
            Orders.CustomerID,
            Orders.OrderDate,
            Orders.ShipVia);
    }
} 

Commit info on GitHub


Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com