Example #1
0
            /// <summary>
            /// Builds entity sets.
            /// </summary>
            protected override void BuildActions()
            {
                base.BuildActions();
                var action = CommerceModelFactory.BindEntitySetAction <SampleDataModel.StoreDayHours>("GetStoreDaysByStore");

                action.Parameter <string>("StoreNumber");
                action.ReturnsCollectionFromEntitySet <SampleDataModel.StoreDayHours>("StoreHours");
            }
            /// <summary>
            /// Builds entity sets.
            /// </summary>
            protected override void BuildActions()
            {
                base.BuildActions();
                var var1 = CommerceModelFactory.BindEntitySetAction <Customer>("GetCrossLoyaltyCardDiscountAction");

                var1.Parameter <string>("LoyaltyCardNumber");
                var1.Returns <decimal>();
            }