Ejemplo n.º 1
0
        public static ODataModelBuilder Add_Customer_EntityType_With_Address(this ODataModelBuilder builder)
        {
            builder.Add_Customer_EntityType_With_DynamicProperties();
            builder.Add_Address_ComplexType();
            var customer = builder.EntityType <Customer>();

            customer.ComplexProperty(c => c.Address);
            customer.Property(c => c.City);
            return(builder);
        }