In the following scenario, i have duplicate function names for the entity type Product...the services opens successfully and shows both these functions and also the advertisement shows both these functions...we should throw error before opening the service...<br /><br />static IEdmModel GetImplicitEdmModel()<br /> {<br /> ODataConventionModelBuilder modelBuilder = new ODataConventionModelBuilder();<br /> var products = modelBuilder.EntitySet<Product>("Products");<br /> var productFamilies = modelBuilder.EntitySet<ProductFamily>("ProductFamilies");<br /> var suppliers = modelBuilder.EntitySet<Supplier>("Suppliers");<br /><br /> var config = products.EntityType.Action("ExtendSupportDate");<br /> config.Parameter<DateTime>("newDate");<br /> config.ReturnsFromEntitySet<Product>("Products");<br /><br /> var config2 = products.EntityType.Action("ExtendSupportDate");<br /> config2.Parameter<DateTime>("newDate");<br /> config2.ReturnsFromEntitySet<Product>("Products");
↧