Any possible alternative mapping

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
Hi,

public partial class CustomerMap : EntityTypeConfiguration<Customer>
this.ToTable("Customer");


any alternative where I can map a stored procedure instead of the table?

Thank you
Hace 12 años
Mon23 wrote:
Hi,

public partial class CustomerMap : EntityTypeConfiguration<Customer>
this.ToTable("Customer");


any alternative where I can map a stored procedure instead of the table?

Thank you


Not in this manner, but product search is already mapped to a stored procedure and you can see how it is used in the Nop.Services.Catalog.ProductService class.

Look for the method with a signature of


        public virtual IPagedList<Product> SearchProducts(int categoryId, int manufacturerId, bool? featuredProducts,
            decimal? priceMin, decimal? priceMax, int productTagId,
            string keywords, bool searchDescriptions, int languageId,
            IList<int> filteredSpecs, ProductSortingEnum orderBy,
            int pageIndex, int pageSize, bool showHidden = false)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.