<div class="post-text" itemprop="text">
I have the following objects:
[Serializable]
public class Module
{
[Key]
public int Id { get; set; }
public string ModuleName { get; set; }
public string FontAwesomeClass { get; set; }
}
[Serializable]
public class ModulosPorUsuario
{
[Key]
public int Id { get; set; }
public string Email { get; set; }
public virtual ICollection<Module> Modules{ get; set; }
}
And I am using the method to cache in a specific key for each user its assigned modules.
/// <summary>
/// Gets the modules activated for a user
...
Go to the complete details ...