This is the web.config registration, and attached below are the classes involved.
Also I should mention that everything compiles great and I added references to the website for all the projects involved in this.
using System;using System.Linq;using System.Linq.Expressions;using XComSolutions.FB.Domain.Model.Entities.Categories;using XComSolutions.FB.Domain.Repository.Repositories.Categories;namespace XComSolutions.FB.Repository.EF.Repositories.Categories{ public class CategoryRepository : GenericRepository<XComSolutions.FB.Domain.Model.Entities.Categories.Category>, ICategoryRepository { }}
using System;using System.Collections.Generic;using System.Linq;using System.Linq.Expressions;using XComSolutions.FB.Domain.Model.Entities;using XComSolutions.FB.Domain.Model;namespace XComSolutions.FB.Domain.Repository{ public interface IGenericRepository<T> : IRepositoryBase where T : BaseEntity { /// <summary> /// Return strongly typed IQueryable /// </summary> IQueryable<T> GetQuery(); /// <summary> /// Load entity from the repository (always query store) /// </summary> /// <typeparam name="T">the entity type to load</typeparam> /// <param name="where">where condition</param> /// <returns>the loaded entity</returns> T Load(Expression<Func<T, bool>> whereCondition); /// <summary> /// Provides explicit loading of object properties /// </summary> void LoadProperty(T entity, Expression<Func<T, object>> selector); /// <summary> /// Returns all entities for a given type /// </summary> /// <returns>All entities</returns> List<T> GetAll(); /// <summary> /// Returns all entities for a given type /// </summary> /// <returns>All entities</returns> List<T> GetAll(int index, int count); /// <summary> /// Returns all entities for a given type which meet a certain boolean expression /// </summary> /// <returns>All entities</returns> List<T> FindBy(Func<T, bool> expression); /// <summary> /// Returns #count entities from #index entity /// for a given type which meet a certain boolean expression /// </summary> /// <returns>All entities</returns> List<T> FindBy(Func<T, bool> expression, int index, int count); /// <summary> /// Add entity to the repository /// </summary> /// <param name="entity">the entity to add</param> /// <returns>The added entity</returns> void Add(T entity); /// <summary> /// Mark entity to be deleted within the repository /// </summary> /// <param name="entity">The entity to delete</param> void Delete(T entity); }}
instead of
ICategoryService
Over there, but this is not the problem. I fixed that and still getting same error.
Thanks