I am using Glass Mapper first time into my Sitecore 8.1 project. I am trying to use search functionality using Glass. I have checked the tutorial for Glass (http://glass.lu/Mapper/Sc/Tutorials/Tutorial25) but that throws an error ("var attributes = new SitecoreAttributeConfigurationLoader("glass.sitecore7");").
Anyone has example which works with Sitecore 8.1.
Thanks
The search example is set up to use fluent configuration and the sample is also trying to pre-load all the models when the application starts up.
Which is the following lines in the sample:
var attributes = new SitecoreAttributeConfigurationLoader("glass.sitecore7");
...
return new IConfigurationLoader[]{attributes, loader};
The error you are seeing is because you have not updated the example to your specific project.
You need to update the name of the library to match your project that contains your classes, e.g.
var attributes = new SitecoreAttributeConfigurationLoader("MyProject.Models");