Posts

Showing posts from February, 2020

What is Glass.Mapper and how to Configure it

Image
What is Glass Mapper? Glass Mapper is a Sitecore ORM (Object Relation Mapping) created by Sitecore MVP Mike Edwards. An ORM maps data to the objects in your code. Glass Mapper is a powerful object relation mapping framework that models Sitecore objects to strongly-typed classes. Among other things it removes the necessity of mapping code to your data store, manual code mapping and item querying in your view logic. and its allows you to map data from Sitecore Database directly into strongly typed C# models. Glass mapper very famous ORM in Sitecore Community. WHY? In Simple way we can say its automatically map the data Sitecore items to C# models. Developers don’t need to write too many code to get data. Here some advantage about that. a. Map all basic attributes of a Sitecore Items b. Supports experience editor c. Make your code unit testable d. Large community to support e. Strongly typed classes For Comatability With Sitecore version Yo

Sitecore Nuget Package: How to Add Sitecore NuGet Package in Solution

Image
The purpose of this article to explain how can we add Sitecore Nuget Package Source. So the required thing when we created new project that time we need to add more Sitecore references looks like. Sitecore.Mvc Sitecore.Kernel Sitecore.Analytics So what i recommend for this don't add directly from website bin folder because in future you will change the location and it will lost the reference location. we have various ways to do that but i prefer always Second Method.   a. First we can go with lib folder like we have to create one folder under solution and copy paste .dll from bin folder to lib folder and add reference it in your solution.  b. Second method which i personally prefer add Sitecore Nuget Package in your solution and add reference accordingly. So For Second method we will go step by step: When you are going to add any Sitecore reference from Nuget that time it will not show any Sitecore reference because we don't have source so firstly we have to a